Skip to content

Commit 7ff3ac2

Browse files
committed
api [nfc]: Add warning about a list not being sorted
As Greg suggests: zulip#304 (comment)
1 parent e4e5705 commit 7ff3ac2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/api/model/initial_snapshot.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ class UnreadMessagesSnapshot {
227227

228228
final List<UnreadStreamSnapshot> streams;
229229
final List<UnreadHuddleSnapshot> huddles;
230+
231+
// Unlike other lists of message IDs here, [mentions] is *not* sorted.
230232
final List<int> mentions;
233+
231234
final bool oldUnreadsMissing;
232235

233236
UnreadMessagesSnapshot({

0 commit comments

Comments
 (0)