fix(Communities): Remove duplications of channel when category removed

Closes: #5933
This commit is contained in:
Boris Melnik 2022-06-10 14:15:38 +03:00
parent 19235e2b79
commit bdf4656405
1 changed files with 1 additions and 0 deletions

View File

@ -485,6 +485,7 @@ method onCommunityCategoryDeleted*(self: Module, cat: Category) =
chatDto.color, chatDto.emoji, chatDto.description, chatDto.chatType.int, amIChatAdmin,
hasNotification, notificationsCount, chatDto.muted, false, active = false,
chatDto.position, categoryId="")
self.view.chatsModel().removeItemById(c.id)
self.view.chatsModel().appendItem(channelItem)
self.view.chatsModel().removeItemById(cat.id)