mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Public rooms search: Made sure the room is no more selected when leaving the rooom page
This commit is contained in:
@@ -192,8 +192,7 @@
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
// Release the current selected room (if any) except if the Room ViewController is still visible (see splitViewController.isCollapsed condition)
|
||||
// Note: 'isCollapsed' property is available in UISplitViewController for iOS 8 and later.
|
||||
if (!self.splitViewController || ([self.splitViewController respondsToSelector:@selector(isCollapsed)] && self.splitViewController.isCollapsed))
|
||||
if (!self.splitViewController || self.splitViewController.isCollapsed)
|
||||
{
|
||||
// Release the current selected room (if any).
|
||||
[self closeSelectedRoom];
|
||||
@@ -210,9 +209,8 @@
|
||||
{
|
||||
[super viewWillDisappear:animated];
|
||||
|
||||
// TODO: Check why it was done before
|
||||
//_selectedRoomId = nil;
|
||||
//_selectedRoomSession = nil;
|
||||
_selectedRoomId = nil;
|
||||
_selectedRoomSession = nil;
|
||||
}
|
||||
|
||||
- (void) viewDidLayoutSubviews
|
||||
|
||||
Reference in New Issue
Block a user