mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-10 00:01:44 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
97392afb9e
@ -1388,6 +1388,16 @@ public final class MediaBox {
|
|||||||
return EmptyDisposable
|
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> {
|
public func allFileContexts() -> Signal<[(partial: String, complete: String)], NoError> {
|
||||||
return Signal { subscriber in
|
return Signal { subscriber in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user