We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c08d0ed commit 0a75e4cCopy full SHA for 0a75e4c
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