mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Preload sounds
This commit is contained in:
@@ -377,6 +377,7 @@ public func notificationSoundSelectionController(context: AccountContext, update
|
||||
|
||||
let playSoundDisposable = MetaDisposable()
|
||||
let soundActionDisposable = MetaDisposable()
|
||||
let fetchedSoundsDisposable = ensureDownloadedNotificationSoundList(postbox: context.account.postbox).start()
|
||||
|
||||
let arguments = NotificationSoundSelectionArguments(account: context.account, selectSound: { sound in
|
||||
updateState { state in
|
||||
@@ -422,6 +423,7 @@ public func notificationSoundSelectionController(context: AccountContext, update
|
||||
let controller = ItemListController(context: context, state: signal |> afterDisposed {
|
||||
playSoundDisposable.dispose()
|
||||
soundActionDisposable.dispose()
|
||||
fetchedSoundsDisposable.dispose()
|
||||
})
|
||||
controller.enableInteractiveDismiss = true
|
||||
if isModal {
|
||||
|
||||
Reference in New Issue
Block a user