We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SubscriptionRemoveEvent
1 parent 8e82e9e commit 21f7020Copy full SHA for 21f7020
lib/model/channel.dart
@@ -168,6 +168,11 @@ class ChannelStoreImpl with ChannelStore {
168
169
case SubscriptionRemoveEvent():
170
for (final streamId in event.streamIds) {
171
+ assert(streams.containsKey(streamId)
172
+ && streams[streamId] is Subscription);
173
+ assert(streamsByName.containsKey(streams[streamId]!.name)
174
+ && streamsByName[streams[streamId]!.name] is Subscription);
175
+ assert(subscriptions.containsKey(streamId));
176
subscriptions.remove(streamId);
177
}
178
0 commit comments