Skip to content

Commit 813a418

Browse files
olorin99jwr1
authored andcommitted
Fix view action set to tabs showing when not using mbin.
Fix error when timeline mode set to default and not using mbin.
1 parent 3cb78e1 commit 813a418

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/src/screens/feed/feed_screen.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ class _FeedScreenState extends State<FeedScreen>
199199
actions.firstWhere(
200200
(action) => action.name == feedActionSetFilter(context).name),
201201
if (context.watch<AppController>().profile.feedActionSetView ==
202-
ActionLocationWithTabs.tabs)
202+
ActionLocationWithTabs.tabs &&
203+
context.watch<AppController>().serverSoftware == ServerSoftware.mbin)
203204
actions.firstWhere(
204205
(action) => action.name == feedActionSetView(context).name),
205206
].firstOrNull;
@@ -227,7 +228,7 @@ class _FeedScreenState extends State<FeedScreen>
227228
(context.watch<AppController>().serverSoftware ==
228229
ServerSoftware.mbin
229230
? context.watch<AppController>().profile.feedDefaultView
230-
: PostType.thread))
231+
: FeedView.threads))
231232
.key,
232233
_ => 0
233234
},

0 commit comments

Comments
 (0)