fix: duplicated chats added

This commit is contained in:
Richard Ramos 2020-05-29 15:31:30 -04:00 committed by RichΛrd
parent ebd29d9ffd
commit fa7d2ba26f
1 changed files with 0 additions and 5 deletions

View File

@ -28,11 +28,6 @@ proc delete*(self: ChatController) =
delete self.variant
proc init*(self: ChatController) =
self.model.events.on("chatsLoaded") do(e: Args):
var chatArgs = ChatArgs(e)
for c in chatArgs.chats:
self.view.pushChatItem(c.toChatItem)
self.model.events.on("messageSent") do(e: Args):
var sentMessage = MsgArgs(e)
var chatMessage = sentMessage.payload.toChatMessage()