Add ChatIdentifierItem back, after model is cleared (#11900)

On chat history clearance initiated by the user.

Fixes #10889
This commit is contained in:
Shinnok 2023-08-22 21:23:40 +03:00 committed by GitHub
parent 3f5df7e3ef
commit ffc560b393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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()