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);
|
||||
|
||||
// Look for the room id
|
||||
NSString* roomId = [userInfo objectForKey:@"room_id"];
|
||||
if (roomId.length) {
|
||||
[self.masterTabBarController showRoom:roomId];
|
||||
// Jump to the concerned room only if the app is transitioning from the background
|
||||
if ([UIApplication sharedApplication].applicationState == UIApplicationStateInactive) {
|
||||
// Look for the room id
|
||||
NSString* roomId = [userInfo objectForKey:@"room_id"];
|
||||
if (roomId.length) {
|
||||
[self.masterTabBarController showRoom:roomId];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue