mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 10:42:35 +01:00
fix: Routes
This commit is contained in:
parent
b49abeca46
commit
6faa60e056
@ -67,7 +67,8 @@ class FluffyRoutes {
|
|||||||
case '':
|
case '':
|
||||||
return ViewData(
|
return ViewData(
|
||||||
mainView: (_) => ChatList(),
|
mainView: (_) => ChatList(),
|
||||||
emptyView: (_) => EmptyPage(),
|
emptyView: (_) =>
|
||||||
|
activeRoomId != null ? Chat(activeRoomId) : EmptyPage(),
|
||||||
);
|
);
|
||||||
case 'rooms':
|
case 'rooms':
|
||||||
final roomId = parts[2];
|
final roomId = parts[2];
|
||||||
@ -119,12 +120,13 @@ class FluffyRoutes {
|
|||||||
}
|
}
|
||||||
return ViewData(
|
return ViewData(
|
||||||
mainView: (_) => ChatList(),
|
mainView: (_) => ChatList(),
|
||||||
emptyView: (_) => EmptyPage(),
|
emptyView: (_) =>
|
||||||
|
activeRoomId != null ? Chat(activeRoomId) : EmptyPage(),
|
||||||
);
|
);
|
||||||
case 'archive':
|
case 'archive':
|
||||||
return ViewData(
|
return ViewData(
|
||||||
|
leftView: (_) => Settings(),
|
||||||
mainView: (_) => Archive(),
|
mainView: (_) => Archive(),
|
||||||
emptyView: (_) => EmptyPage(),
|
|
||||||
);
|
);
|
||||||
case 'logs':
|
case 'logs':
|
||||||
return ViewData(
|
return ViewData(
|
||||||
@ -156,7 +158,8 @@ class FluffyRoutes {
|
|||||||
}
|
}
|
||||||
return ViewData(
|
return ViewData(
|
||||||
mainView: (_) => Discover(),
|
mainView: (_) => Discover(),
|
||||||
emptyView: (_) => EmptyPage(),
|
emptyView: (_) =>
|
||||||
|
activeRoomId != null ? Chat(activeRoomId) : EmptyPage(),
|
||||||
);
|
);
|
||||||
case 'settings':
|
case 'settings':
|
||||||
if (parts.length == 3) {
|
if (parts.length == 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user