mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #5949 from vector-im/langleyd/5948_fix_launch_stuck
We should always reset `listenForRoomListDataReady` for a session sta…
This commit is contained in:
commit
8e795eff97
2 changed files with 13 additions and 2 deletions
|
@ -2417,6 +2417,18 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
|||
|
||||
if (mainSession)
|
||||
{
|
||||
|
||||
switch (mainSession.state)
|
||||
{
|
||||
case MXSessionStateClosed:
|
||||
case MXSessionStateInitialised:
|
||||
case MXSessionStateBackgroundSyncInProgress:
|
||||
self.roomListDataReady = NO;
|
||||
[self listenForRoomListDataReady];
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
BOOL isLaunching = NO;
|
||||
|
||||
if (_masterTabBarController.isOnboardingInProgress)
|
||||
|
@ -2434,8 +2446,6 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
|||
case MXSessionStateClosed:
|
||||
case MXSessionStateInitialised:
|
||||
case MXSessionStateBackgroundSyncInProgress:
|
||||
self.roomListDataReady = NO;
|
||||
[self listenForRoomListDataReady];
|
||||
isLaunching = YES;
|
||||
break;
|
||||
case MXSessionStateStoreDataReady:
|
||||
|
|
1
changelog.d/5948.bugfix
Normal file
1
changelog.d/5948.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix for app occasionally getting stuck during launch after Login/Register.
|
Loading…
Reference in a new issue