Commit 67c37f47 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

fix: memory leak on conversation

Conversation view controllers was not destroyed after reopening

Change-Id: I5137f84e4d3de13b221e4ad1c2a4f86360fab64b
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <>
parent b32227fb
......@@ -533,16 +533,16 @@ class ConversationViewController: UIViewController,
self.viewModel.sendMessage(withContent: "👍")
}).disposed(by: self.disposeBag)
self.messageAccessoryView.messageTextViewHeight.asObservable().subscribe(onNext: { height in
self.messageAccessoryView.messageTextViewHeight.asObservable().subscribe(onNext: { [unowned self] height in
self.tableView.contentInset.bottom = self.bottomHeight + height - 35
self.tableView.scrollIndicatorInsets.bottom = self.bottomHeight + height - 35
self.scrollToBottom(animated: true)
}).disposed(by: self.disposeBag)
self.messageAccessoryView.messageTextViewContent.asObservable().subscribe(onNext: { height in
self.messageAccessoryView.messageTextViewContent.asObservable().subscribe(onNext: { [unowned self] _ in
}).disposed(by: self.disposeBag)
// Avoid the keyboard to be hidden when the Send button is touched
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment