diff --git a/matrixConsole/matrixConsole/AppDelegate.m b/matrixConsole/matrixConsole/AppDelegate.m index c22dbea0f..5a02e5f23 100644 --- a/matrixConsole/matrixConsole/AppDelegate.m +++ b/matrixConsole/matrixConsole/AppDelegate.m @@ -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]; + } } }