Skip to content

Commit b925648

Browse files
committed
api: Add starredMessages to initial snapshot
1 parent 48e0c40 commit b925648

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

lib/api/model/initial_snapshot.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class InitialSnapshot {
6060

6161
final UnreadMessagesSnapshot unreadMsgs;
6262

63+
final List<int> starredMessages;
64+
6365
final List<ZulipStream> streams;
6466

6567
// In register-queue, the name of this field is the singular "user_status",
@@ -178,6 +180,7 @@ class InitialSnapshot {
178180
required this.subscriptions,
179181
required this.channelFolders,
180182
required this.unreadMsgs,
183+
required this.starredMessages,
181184
required this.streams,
182185
required this.userStatuses,
183186
required this.userSettings,

lib/api/model/initial_snapshot.g.dart

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/example_data.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ InitialSnapshot initialSnapshot({
13491349
List<Subscription>? subscriptions,
13501350
List<ChannelFolder>? channelFolders,
13511351
UnreadMessagesSnapshot? unreadMsgs,
1352+
List<int>? starredMessages,
13521353
List<ZulipStream>? streams,
13531354
Map<int, UserStatusChange>? userStatuses,
13541355
UserSettings? userSettings,
@@ -1408,6 +1409,7 @@ InitialSnapshot initialSnapshot({
14081409
subscriptions: subscriptions ?? [], // TODO add subscriptions to default
14091410
channelFolders: channelFolders ?? [],
14101411
unreadMsgs: unreadMsgs ?? _unreadMsgs(),
1412+
starredMessages: starredMessages ?? [],
14111413
streams: streams ?? [], // TODO add streams to default
14121414
userStatuses: userStatuses ?? {},
14131415
userSettings: userSettings ?? _userSettings(),

0 commit comments

Comments
 (0)