Skip to content

Commit e1c581b

Browse files
committed
api [nfc]: Reorder streamId and topic properties of UnreadStreamSnapshot
1 parent f09b8d9 commit e1c581b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/api/model/initial_snapshot.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ class UnreadDmSnapshot {
275275
/// An item in [UnreadMessagesSnapshot.streams].
276276
@JsonSerializable(fieldRename: FieldRename.snake)
277277
class UnreadStreamSnapshot {
278-
final String topic;
279278
final int streamId;
279+
final String topic;
280280
final List<int> unreadMessageIds;
281281

282282
UnreadStreamSnapshot({
283-
required this.topic,
284283
required this.streamId,
284+
required this.topic,
285285
required this.unreadMessageIds,
286286
}) : assert(isSortedWithoutDuplicates(unreadMessageIds));
287287

0 commit comments

Comments
 (0)