mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -3072,6 +3072,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
}
|
||||
})
|
||||
|
||||
var wasInForeground = true
|
||||
self.applicationInForegroundDisposable = (context.sharedContext.applicationBindings.applicationInForeground
|
||||
|> distinctUntilChanged
|
||||
|> deliverOn(Queue.mainQueue())).start(next: { [weak self] value in
|
||||
@@ -3081,7 +3082,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
strongSelf.raiseToListen?.applicationResignedActive()
|
||||
|
||||
strongSelf.stopMediaRecorder()
|
||||
} else {
|
||||
if !wasInForeground {
|
||||
strongSelf.chatDisplayNode.recursivelyEnsureDisplaySynchronously(true)
|
||||
}
|
||||
}
|
||||
wasInForeground = value
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user