We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1debc8 commit 7f4918dCopy full SHA for 7f4918d
packages/stream_feeds/lib/src/models/activity_data.dart
@@ -332,10 +332,12 @@ extension ActivityDataMutations on ActivityData {
332
ownBookmarks: ownBookmarks ?? this.ownBookmarks,
333
ownReactions: ownReactions ?? this.ownReactions,
334
poll: updated.poll?.let((it) => poll?.updateWith(it) ?? it),
335
- currentFeed: updated.currentFeed == null
336
- ? currentFeed
337
- : currentFeed?.updateWith(updated.currentFeed!) ??
338
- updated.currentFeed,
+ // Workaround until the backend fixes the issue with missing currentFeed
+ // in some WS events
+ currentFeed: switch (updated.currentFeed) {
+ final it? => currentFeed?.updateWith(it) ?? it,
339
+ _ => currentFeed,
340
+ },
341
);
342
}
343
0 commit comments