fix pinned streams not showing in other lists
This commit is contained in:
parent
29c84858a0
commit
56961c7010
1 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue