mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Fix state issue
This commit is contained in:
parent
8802a52816
commit
7147ca65e6
@ -54,6 +54,14 @@ class _MainRouteState extends MainController {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void pushPage(PageInfo page) {
|
||||||
|
if (page.hideNavBar)
|
||||||
|
Navigator.of(context).push(MaterialPageRoute(builder: (c) => page.child));
|
||||||
|
else
|
||||||
|
super.pushPage(page);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void openConversation(Conversation conv, {fullScreen: false}) {
|
void openConversation(Conversation conv, {fullScreen: false}) {
|
||||||
// Forcefully open conversations in a "normal" way (do not display groups)
|
// Forcefully open conversations in a "normal" way (do not display groups)
|
||||||
@ -61,11 +69,17 @@ class _MainRouteState extends MainController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void openGroup(int groupID, {int conversationID}) {
|
void openGroup(int groupID, {int conversationID}) => _unsupportedFeature();
|
||||||
alert(context,
|
|
||||||
|
@override
|
||||||
|
void openUserPage(int userID) => _unsupportedFeature();
|
||||||
|
|
||||||
|
@override
|
||||||
|
void openFriendsList() => _unsupportedFeature();
|
||||||
|
|
||||||
|
void _unsupportedFeature() => alert(context,
|
||||||
tr("This feature is available only in the Comunic application!"));
|
tr("This feature is available only in the Comunic application!"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
enum _PopupMenuItems { ACTION_SETTINGS, ACTION_SIGN_OUT }
|
enum _PopupMenuItems { ACTION_SETTINGS, ACTION_SIGN_OUT }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user