mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix issue
This commit is contained in:
		@@ -44,9 +44,12 @@ class _ConversationRouteState extends State<ConversationRoute> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (_conversation == null) return setError(true);
 | 
					    if (_conversation == null) return setError(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    final conversationName =
 | 
					    final conversationName =
 | 
				
			||||||
        await ConversationsHelper.getConversationNameAsync(_conversation);
 | 
					        await ConversationsHelper.getConversationNameAsync(_conversation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if(!this.mounted) return null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (conversationName == null) return setError(true);
 | 
					    if (conversationName == null) return setError(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    setState(() {
 | 
					    setState(() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,6 +33,12 @@ class _ConversationScreenState extends State<ConversationsListScreen> {
 | 
				
			|||||||
    _loadConversations();
 | 
					    _loadConversations();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @override
 | 
				
			||||||
 | 
					  void setState(fn) {
 | 
				
			||||||
 | 
					    if(mounted)
 | 
				
			||||||
 | 
					      super.setState(fn);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void setError(LoadErrorLevel err) => setState(() => _error = err);
 | 
					  void setError(LoadErrorLevel err) => setState(() => _error = err);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void setLoading(bool loading) => setState(() => _loading = loading);
 | 
					  void setLoading(bool loading) => setState(() => _loading = loading);
 | 
				
			||||||
@@ -64,8 +70,10 @@ class _ConversationScreenState extends State<ConversationsListScreen> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    //Get information about the members of the conversations
 | 
					    //Get information about the members of the conversations
 | 
				
			||||||
    list.users = await _usersHelper.getUsersInfo(list.allUsersID);
 | 
					    list.users = await _usersHelper.getUsersInfo(list.allUsersID);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (list.users == null) return _gotLoadingError();
 | 
					    if (list.users == null) return _gotLoadingError();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //Save list
 | 
					    //Save list
 | 
				
			||||||
    setState(() {
 | 
					    setState(() {
 | 
				
			||||||
      _list = list;
 | 
					      _list = list;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user