fix(@desktop/chat): Fix updating channel color after admin updated it.

Issue #7414
This commit is contained in:
Michal Iskierko 2022-11-25 11:29:26 +01:00 committed by Michał Iskierko
parent 5ee51ad20d
commit 0a4f5fa27c
1 changed files with 3 additions and 3 deletions

View File

@ -421,9 +421,9 @@ QtObject:
chatId: chat.id, categoryId: chat.categoryId, position: chat.position))
# Handle name/description changes
if(chat.id == prev_chat.id and (chat.name != prev_chat.name or chat.description != prev_chat.description)):
let chatFullId = community.id & chat.id
var updatedChat = findChatById(chatFullId, updatedChats)
if(chat.id == prev_chat.id and
(chat.name != prev_chat.name or chat.description != prev_chat.description or chat.color != prev_chat.color)):
var updatedChat = findChatById(chat.id, updatedChats)
updatedChat.updateMissingFields(chat)
self.chatService.updateOrAddChat(updatedChat) # we have to update chats stored in the chat service.