mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Add missing thread switch
This commit is contained in:
@@ -1901,6 +1901,7 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
|||||||
private func openChatWhenReady(accountId: AccountRecordId?, peerId: PeerId, messageId: MessageId? = nil, activateInput: Bool = false) {
|
private func openChatWhenReady(accountId: AccountRecordId?, peerId: PeerId, messageId: MessageId? = nil, activateInput: Bool = false) {
|
||||||
let signal = self.sharedContextPromise.get()
|
let signal = self.sharedContextPromise.get()
|
||||||
|> take(1)
|
|> take(1)
|
||||||
|
|> deliverOnMainQueue
|
||||||
|> mapToSignal { sharedApplicationContext -> Signal<AuthorizedApplicationContext, NoError> in
|
|> mapToSignal { sharedApplicationContext -> Signal<AuthorizedApplicationContext, NoError> in
|
||||||
if let accountId = accountId {
|
if let accountId = accountId {
|
||||||
sharedApplicationContext.sharedContext.switchToAccount(id: accountId)
|
sharedApplicationContext.sharedContext.switchToAccount(id: accountId)
|
||||||
|
|||||||
Reference in New Issue
Block a user