Skip to content

Commit f2e05b8

Browse files
committed
keep own fields on currentFeed in ActivityData
1 parent d2ef892 commit f2e05b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/stream_feeds/lib/src/models/activity_data.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ extension ActivityDataMutations on ActivityData {
332332
ownBookmarks: ownBookmarks ?? this.ownBookmarks,
333333
ownReactions: ownReactions ?? this.ownReactions,
334334
poll: updated.poll?.let((it) => poll?.updateWith(it) ?? it),
335+
currentFeed: updated.currentFeed == null
336+
? currentFeed
337+
: currentFeed?.updateWith(updated.currentFeed!) ??
338+
updated.currentFeed,
335339
);
336340
}
337341

0 commit comments

Comments
 (0)