mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Fix name issue
This commit is contained in:
parent
c2891c3c84
commit
779333f20a
@ -82,7 +82,7 @@ class ConversationsHelper {
|
|||||||
/// about the users of this conversation
|
/// about the users of this conversation
|
||||||
static String getConversationName(
|
static String getConversationName(
|
||||||
Conversation conversation, UsersList users) {
|
Conversation conversation, UsersList users) {
|
||||||
if (conversation.has_name) return conversation.name;
|
if (conversation.hasName) return conversation.name;
|
||||||
|
|
||||||
String name = "";
|
String name = "";
|
||||||
int count = 0;
|
int count = 0;
|
||||||
@ -106,7 +106,7 @@ class ConversationsHelper {
|
|||||||
/// Returns null in case of failure
|
/// Returns null in case of failure
|
||||||
static Future<String> getConversationNameAsync(
|
static Future<String> getConversationNameAsync(
|
||||||
Conversation conversation) async {
|
Conversation conversation) async {
|
||||||
if (conversation.has_name) return conversation.name;
|
if (conversation.hasName) return conversation.name;
|
||||||
|
|
||||||
//Get information about the members of the conversation
|
//Get information about the members of the conversation
|
||||||
final members = await UsersHelper().getUsersInfo(conversation.members);
|
final members = await UsersHelper().getUsersInfo(conversation.members);
|
||||||
|
@ -32,7 +32,7 @@ class Conversation extends CacheModel implements Comparable {
|
|||||||
super(id: id);
|
super(id: id);
|
||||||
|
|
||||||
/// Check out whether a conversation has a fixed name or not
|
/// Check out whether a conversation has a fixed name or not
|
||||||
bool get has_name => this.name != null;
|
bool get hasName => this.name != null;
|
||||||
|
|
||||||
Conversation.fromMap(Map<String, dynamic> map)
|
Conversation.fromMap(Map<String, dynamic> map)
|
||||||
: ownerID = map[ConversationTableContract.C_OWNER_ID],
|
: ownerID = map[ConversationTableContract.C_OWNER_ID],
|
||||||
|
Loading…
Reference in New Issue
Block a user