mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Don't wait for network in the chat list initialization
This commit is contained in:
parent
1910062888
commit
75d78770db
@ -1371,7 +1371,7 @@ public final class ChatListNode: ListView {
|
||||
|
||||
let suggestPasswordSetup: Signal<Bool, NoError>
|
||||
if case .chatList(groupId: .root) = location, chatListFilter == nil {
|
||||
suggestPasswordSetup = combineLatest(
|
||||
suggestPasswordSetup = .single(false) |> then(combineLatest(
|
||||
getServerProvidedSuggestions(account: context.account),
|
||||
context.engine.auth.twoStepVerificationConfiguration()
|
||||
)
|
||||
@ -1389,7 +1389,7 @@ public final class ChatListNode: ListView {
|
||||
return false
|
||||
}
|
||||
return suggestions.contains(.setupPassword)
|
||||
}
|
||||
})
|
||||
|> distinctUntilChanged
|
||||
} else {
|
||||
suggestPasswordSetup = .single(false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user