mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Can open conversation from unread conversations dropdown
This commit is contained in:
@ -22,6 +22,10 @@ abstract class MainController extends State<MainRoute> {
|
||||
return mainControllerKey.currentState;
|
||||
}
|
||||
|
||||
/// Pop until main route is reached
|
||||
void popUntilMainRoute() => Navigator.of(context).popUntil((settings) =>
|
||||
ModalRoute.of(context).isCurrent || !ModalRoute.of(context).isActive);
|
||||
|
||||
/// Open user page
|
||||
void openUserPage(int userID);
|
||||
|
||||
|
@ -66,6 +66,7 @@ class _TabletRouteState extends MainController {
|
||||
|
||||
@override
|
||||
void openConversation(int convID, {fullScreen = false}) {
|
||||
popUntilMainRoute();
|
||||
_conversationsKey.currentState.openConversations(convID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user