fix(Communities): Remove duplications of channel when category removed
Closes: #5933
This commit is contained in:
parent
19235e2b79
commit
bdf4656405
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue