We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ff79b commit 18672baCopy full SHA for 18672ba
lib/model/unreads.dart
@@ -455,6 +455,8 @@ class Unreads extends ChangeNotifier {
455
456
// [messageIds] must be sorted ascending and without duplicates.
457
void _addAllInStreamTopic(QueueList<int> messageIds, int streamId, TopicName topic) {
458
+ assert(messageIds.isNotEmpty);
459
+ assert(isSortedWithoutDuplicates(messageIds));
460
final topics = streams[streamId] ??= {};
461
topics.update(topic,
462
ifAbsent: () => messageIds,
0 commit comments