mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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) {
|
||||
let signal = self.sharedContextPromise.get()
|
||||
|> take(1)
|
||||
|> deliverOnMainQueue
|
||||
|> mapToSignal { sharedApplicationContext -> Signal<AuthorizedApplicationContext, NoError> in
|
||||
if let accountId = accountId {
|
||||
sharedApplicationContext.sharedContext.switchToAccount(id: accountId)
|
||||
|
||||
Reference in New Issue
Block a user