fix pinned streams not showing in other lists

This commit is contained in:
Tommy Chow 2025-06-18 21:12:03 -04:00
parent 29c84858a0
commit 56961c7010

View file

@ -130,12 +130,14 @@ class _StreamsListState extends State<StreamsList>
final settingsStore = context.watch<SettingsStore>();
final unpinnedStreams = _listStore.streams
.where(
(stream) =>
!settingsStore.pinnedChannelIds.contains(stream.userId),
)
.toList();
final unpinnedStreams = widget.listType == ListType.followed
? _listStore.streams
.where(
(stream) =>
!settingsStore.pinnedChannelIds.contains(stream.userId),
)
.toList()
: _listStore.streams;
final isFollowingTab = widget.listType == ListType.followed;