From 779333f20ae9ea94333458ec3f915fd870516180 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 25 Apr 2019 11:14:05 +0200 Subject: [PATCH] Fix name issue --- lib/helpers/conversations_helper.dart | 4 ++-- lib/models/conversation.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helpers/conversations_helper.dart b/lib/helpers/conversations_helper.dart index 4e57837..91b392b 100644 --- a/lib/helpers/conversations_helper.dart +++ b/lib/helpers/conversations_helper.dart @@ -82,7 +82,7 @@ class ConversationsHelper { /// about the users of this conversation static String getConversationName( Conversation conversation, UsersList users) { - if (conversation.has_name) return conversation.name; + if (conversation.hasName) return conversation.name; String name = ""; int count = 0; @@ -106,7 +106,7 @@ class ConversationsHelper { /// Returns null in case of failure static Future getConversationNameAsync( Conversation conversation) async { - if (conversation.has_name) return conversation.name; + if (conversation.hasName) return conversation.name; //Get information about the members of the conversation final members = await UsersHelper().getUsersInfo(conversation.members); diff --git a/lib/models/conversation.dart b/lib/models/conversation.dart index 7375a52..eb170d8 100644 --- a/lib/models/conversation.dart +++ b/lib/models/conversation.dart @@ -32,7 +32,7 @@ class Conversation extends CacheModel implements Comparable { super(id: id); /// 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 map) : ownerID = map[ConversationTableContract.C_OWNER_ID],