mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Console: APNS - SYIOS-75 - Jump to the concerned room only if the app is transitioning from the background
This commit is contained in:
parent
f10e1da97b
commit
0f93cbcd41
1 changed files with 7 additions and 4 deletions
|
@ -257,10 +257,13 @@
|
||||||
|
|
||||||
completionHandler(UIBackgroundFetchResultNoData);
|
completionHandler(UIBackgroundFetchResultNoData);
|
||||||
|
|
||||||
// Look for the room id
|
// Jump to the concerned room only if the app is transitioning from the background
|
||||||
NSString* roomId = [userInfo objectForKey:@"room_id"];
|
if ([UIApplication sharedApplication].applicationState == UIApplicationStateInactive) {
|
||||||
if (roomId.length) {
|
// Look for the room id
|
||||||
[self.masterTabBarController showRoom:roomId];
|
NSString* roomId = [userInfo objectForKey:@"room_id"];
|
||||||
|
if (roomId.length) {
|
||||||
|
[self.masterTabBarController showRoom:roomId];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue