Add ChatIdentifierItem back, after model is cleared (#11900)
On chat history clearance initiated by the user. Fixes #10889
This commit is contained in:
parent
3f5df7e3ef
commit
ffc560b393
|
@ -633,6 +633,8 @@ method onMessageEdited*(self: Module, message: MessageDto) =
|
|||
|
||||
method onHistoryCleared*(self: Module) =
|
||||
self.view.model().clear()
|
||||
# Add ChatIdentifier back after model is cleared, so that the chat screen is not blank
|
||||
self.view.model().insertItemBasedOnClock(self.createChatIdentifierItem())
|
||||
|
||||
method updateChatIdentifier*(self: Module) =
|
||||
let chatDto = self.controller.getChatDetails()
|
||||
|
|
Loading…
Reference in New Issue