mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Only clean up messages while active
// FREEBIE
This commit is contained in:
parent
4080545d85
commit
c0ddcc7919
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,10 @@ void AssertIsOnDisappearingMessagesQueue()
|
|||
}
|
||||
|
||||
dispatch_async(OWSDisappearingMessagesJob.serialQueue, ^{
|
||||
if (!CurrentAppContext().isMainAppAndActive) {
|
||||
DDLogInfo(@"%@ Ignoring fallbacktimer for app which is not main and active.", self.logTag);
|
||||
return;
|
||||
}
|
||||
NSUInteger deletedCount = [self runLoop];
|
||||
|
||||
// Normally deletions should happen via the disappearanceTimer, to make sure that they're prompt.
|
||||
|
|
Loading…
Reference in a new issue