mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Automatically pick the right target for full-screen conversations
This commit is contained in:
parent
4db2120de9
commit
b76220705f
@ -81,9 +81,8 @@ class _ConversationWindowState extends SafeState<ConversationWindow> {
|
||||
_refresh();
|
||||
|
||||
listen<NewConversationMessageEvent>((e) {
|
||||
if (e.msg.convID == _convID &&
|
||||
_collapsed &&
|
||||
e.msg.userID != userID()) setState(() => _hasNewMessages = true);
|
||||
if (e.msg.convID == _convID && _collapsed && e.msg.userID != userID())
|
||||
setState(() => _hasNewMessages = true);
|
||||
});
|
||||
}
|
||||
|
||||
@ -175,7 +174,8 @@ class _ConversationWindowState extends SafeState<ConversationWindow> {
|
||||
}
|
||||
|
||||
void _openFullScreen() {
|
||||
MainController.of(context).openConversationById(_convID, fullScreen: true);
|
||||
MainController.of(context)
|
||||
.openConversation(_conversation, fullScreen: true);
|
||||
widget.onClose();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user