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