mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Automatically pick the right target for full-screen conversations
This commit is contained in:
		@@ -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();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user