mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
97392afb9e
1 changed files with 10 additions and 0 deletions
|
|
@ -1388,6 +1388,16 @@ public final class MediaBox {
|
|||
return EmptyDisposable
|
||||
}
|
||||
}
|
||||
|
||||
public func allFileContextResourceIds() -> Signal<Set<MediaResourceId>, NoError> {
|
||||
return Signal { subscriber in
|
||||
self.dataQueue.async {
|
||||
subscriber.putNext(Set(self.fileContexts.map({ $0.key })))
|
||||
subscriber.putCompletion()
|
||||
}
|
||||
return EmptyDisposable
|
||||
}
|
||||
}
|
||||
|
||||
public func allFileContexts() -> Signal<[(partial: String, complete: String)], NoError> {
|
||||
return Signal { subscriber in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue