fix wrong setup of channel view which was causing app to crash

This commit is contained in:
Iuri Matias 2021-06-18 11:04:09 -04:00
parent 599bf731fb
commit d299e05e02
1 changed files with 3 additions and 4 deletions

View File

@ -21,13 +21,12 @@ QtObject:
previousActiveChannelIndex*: int
contextChannel*: ChatItemView
proc setup(self: ChannelView) =
proc setup(self: ChannelView) = self.QObject.setup
proc delete*(self: ChannelView) =
self.chats.delete
self.activeChannel.delete
self.contextChannel.delete
self.QObject.setup
proc delete*(self: ChannelView) = self.QObject.delete
self.QObject.delete
proc newChannelView*(status: Status, communities: CommunitiesView): ChannelView =
new(result, delete)