refactor(communities): edit categories
This commit is contained in:
parent
aa6036b78b
commit
b21d2c5618
|
@ -669,6 +669,7 @@ method prepareEditCategoryModel*(self: Module, categoryId: string) =
|
||||||
let c = self.controller.getChatDetails(communityId, chat.id)
|
let c = self.controller.getChatDetails(communityId, chat.id)
|
||||||
let item = initItem(c.id, c.name, "", false, c.color, c.description, c.chatType.int, false,
|
let item = initItem(c.id, c.name, "", false, c.color, c.description, c.chatType.int, false,
|
||||||
false, 0, c.muted, false, active = false, c.position, "")
|
false, 0, c.muted, false, active = false, c.position, "")
|
||||||
|
|
||||||
self.view.editCategoryChannelsModel().appendItem(item)
|
self.view.editCategoryChannelsModel().appendItem(item)
|
||||||
let catChats = self.controller.getChats(communityId, categoryId)
|
let catChats = self.controller.getChats(communityId, categoryId)
|
||||||
for chat in catChats:
|
for chat in catChats:
|
||||||
|
|
Loading…
Reference in New Issue