Preload sounds

This commit is contained in:
Ali
2022-04-20 20:07:54 +04:00
parent 3b67110f83
commit 333d34e4b7
3 changed files with 35 additions and 0 deletions

View File

@@ -694,6 +694,7 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
private let presentationDataValue = Promise<(PresentationTheme, PresentationStrings)>()
private var listDisposable: Disposable?
private var fetchedSoundsDisposable: Disposable?
private var arguments: NotificationExceptionArguments?
private let stateValue: Atomic<NotificationExceptionState>
@@ -996,12 +997,15 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
self?.enqueueTransition(transition)
})
self.fetchedSoundsDisposable = ensureDownloadedNotificationSoundList(postbox: context.account.postbox).start()
}
deinit {
self.listDisposable?.dispose()
self.navigationActionDisposable.dispose()
self.updateNotificationsDisposable.dispose()
self.fetchedSoundsDisposable?.dispose()
}
func updatePresentationData(_ presentationData: PresentationData) {