1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Parse correctly conversation color

This commit is contained in:
2021-03-10 18:04:29 +01:00
parent dacccf57b5
commit a23b76b552
4 changed files with 23 additions and 7 deletions

View File

@ -17,6 +17,7 @@ import 'package:comunic/models/new_conversation_message.dart';
import 'package:comunic/models/new_conversation_settings.dart';
import 'package:comunic/models/unread_conversation.dart';
import 'package:comunic/utils/account_utils.dart';
import 'package:comunic/utils/dart_color.dart';
import 'package:meta/meta.dart';
/// Conversation helper
@ -190,7 +191,7 @@ class ConversationsHelper {
id: map["id"],
lastActivity: map["last_activity"],
name: map["name"],
color: map["color"],
color: map["color"] == null ? null : HexColor(map["color"]),
logoURL: map["logo"],
groupID: map["group_id"],
members: map["members"]