Commit 15ff3fd9 authored by QuentinArguillere's avatar QuentinArguillere
Browse files

Destroy chatroom objective C object when entering background to avoid a crash...

Destroy chatroom objective C object when entering background to avoid a crash caused by a callstatechagned event from background
parent 7bafd370
Pipeline #30953 passed with stage
in 6 minutes and 1 second
......@@ -68,9 +68,11 @@
ChatConversationView *view = VIEW(ChatConversationView);
[view removeCallBacks];
[view.tableController setChatRoom:NULL];
[view setChatRoom:NULL];
} else if (PhoneMainView.instance.currentView == ChatConversationInfoView.compositeViewDescription) {
ChatConversationInfoView *view = VIEW(ChatConversationInfoView);
[view removeCallbacks];
[view setRoom:NULL];
} else if (PhoneMainView.instance.currentView == RecordingsListView.compositeViewDescription || PhoneMainView.instance.currentView == DevicesListView.compositeViewDescription) {
// To avoid crash
[PhoneMainView.instance changeCurrentView:DialerView.compositeViewDescription];
......
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