mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Get conversation message
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import 'package:comunic/helpers/conversations_helper.dart';
 | 
			
		||||
import 'package:comunic/models/conversation.dart';
 | 
			
		||||
import 'package:comunic/ui/screens/conversation_screen.dart';
 | 
			
		||||
import 'package:comunic/utils/intl_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/ui_utils.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
@@ -38,16 +39,14 @@ class _ConversationRouteState extends State<ConversationRoute> {
 | 
			
		||||
  Future<void> _loadConversation() async {
 | 
			
		||||
    setError(false);
 | 
			
		||||
 | 
			
		||||
    _conversation =
 | 
			
		||||
        await _conversationsHelper.getSingle(widget.conversationID);
 | 
			
		||||
    _conversation = await _conversationsHelper.getSingle(widget.conversationID);
 | 
			
		||||
 | 
			
		||||
    if (_conversation == null) return setError(true);
 | 
			
		||||
 | 
			
		||||
    final conversationName =
 | 
			
		||||
        await ConversationsHelper.getConversationNameAsync(_conversation);
 | 
			
		||||
 | 
			
		||||
    if(conversationName == null)
 | 
			
		||||
      return setError(true);
 | 
			
		||||
    if (conversationName == null) return setError(true);
 | 
			
		||||
 | 
			
		||||
    setState(() {
 | 
			
		||||
      _conversationName = conversationName;
 | 
			
		||||
@@ -72,8 +71,12 @@ class _ConversationRouteState extends State<ConversationRoute> {
 | 
			
		||||
        ],
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
    //if (_conversationName == null || _conversation == null)
 | 
			
		||||
    if (_conversationName == null || _conversation == null)
 | 
			
		||||
      return buildCenteredProgressBar();
 | 
			
		||||
 | 
			
		||||
    return ConversationScreen(
 | 
			
		||||
      conversationID: widget.conversationID,
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user