1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +00:00

Automatically pick the right target for full-screen conversations

This commit is contained in:
Pierre HUBERT 2021-04-07 16:37:15 +02:00
parent 4db2120de9
commit b76220705f

View File

@ -81,9 +81,8 @@ class _ConversationWindowState extends SafeState<ConversationWindow> {
_refresh(); _refresh();
listen<NewConversationMessageEvent>((e) { listen<NewConversationMessageEvent>((e) {
if (e.msg.convID == _convID && if (e.msg.convID == _convID && _collapsed && e.msg.userID != userID())
_collapsed && setState(() => _hasNewMessages = true);
e.msg.userID != userID()) setState(() => _hasNewMessages = true);
}); });
} }
@ -175,7 +174,8 @@ class _ConversationWindowState extends SafeState<ConversationWindow> {
} }
void _openFullScreen() { void _openFullScreen() {
MainController.of(context).openConversationById(_convID, fullScreen: true); MainController.of(context)
.openConversation(_conversation, fullScreen: true);
widget.onClose(); widget.onClose();
} }