mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-07-03 15:13:29 +00:00
Show cached conversations list before getting list from the server
This commit is contained in:
@ -43,6 +43,13 @@ class ConversationsHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the local list of conversations
|
||||
Future<ConversationsList> getCachedList() async {
|
||||
final list = await _conversationsDatabaseHelper.getAll();
|
||||
list.sort();
|
||||
return list;
|
||||
}
|
||||
|
||||
/// Get the name of a [conversation]. This requires information about the
|
||||
/// users of this conversation
|
||||
static String getConversationName(
|
||||
|
Reference in New Issue
Block a user