Skip to content

Commit d1fef86

Browse files
committed
api: Add starredMessages to initial snapshot
1 parent deb8b26 commit d1fef86

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
@@ -58,6 +58,8 @@ class InitialSnapshot {
5858

5959
final UnreadMessagesSnapshot unreadMsgs;
6060

61+
final List<int> starredMessages;
62+
6163
final List<ZulipStream> streams;
6264

6365
// In register-queue, the name of this field is the singular "user_status",
@@ -175,6 +177,7 @@ class InitialSnapshot {
175177
required this.subscriptions,
176178
required this.channelFolders,
177179
required this.unreadMsgs,
180+
required this.starredMessages,
178181
required this.streams,
179182
required this.userStatuses,
180183
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
@@ -1327,6 +1327,7 @@ InitialSnapshot initialSnapshot({
13271327
List<Subscription>? subscriptions,
13281328
List<ChannelFolder>? channelFolders,
13291329
UnreadMessagesSnapshot? unreadMsgs,
1330+
List<int>? starredMessages,
13301331
List<ZulipStream>? streams,
13311332
Map<int, UserStatusChange>? userStatuses,
13321333
UserSettings? userSettings,
@@ -1385,6 +1386,7 @@ InitialSnapshot initialSnapshot({
13851386
subscriptions: subscriptions ?? [], // TODO add subscriptions to default
13861387
channelFolders: channelFolders ?? [],
13871388
unreadMsgs: unreadMsgs ?? _unreadMsgs(),
1389+
starredMessages: starredMessages ?? [],
13881390
streams: streams ?? [], // TODO add streams to default
13891391
userStatuses: userStatuses ?? {},
13901392
userSettings: userSettings ?? UserSettings(

0 commit comments

Comments
 (0)