mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Don't ask for camera permissions if app is not active.
// FREEBIE
This commit is contained in:
parent
5cc292fb6c
commit
593c684fcb
1 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
});
|
||||
};
|
||||
|
||||
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) {
|
||||
DDLogError(@"Skipping camera permissions request when app is not active.");
|
||||
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {
|
||||
DDLogError(@"Skipping camera permissions request when app is in background.");
|
||||
callback(NO);
|
||||
return;
|
||||
}
|
||||
|
@ -85,8 +85,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
});
|
||||
};
|
||||
|
||||
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) {
|
||||
DDLogError(@"Skipping microphone permissions request when app is not active.");
|
||||
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {
|
||||
DDLogError(@"Skipping microphone permissions request when app is in background.");
|
||||
callback(NO);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue