Fix warning about executing updating the UI from outside the main thread

This commit is contained in:
Chad Sykes 2020-12-27 13:21:07 -07:00
parent fb6dd8fac8
commit c9c31ff6f5

View file

@ -90,6 +90,7 @@ class AppState: ObservableObject {
func requestSMS(to trustedPhoneNumber: AuthOptionsResponse.TrustedPhoneNumber, authOptions: AuthOptionsResponse, sessionData: AppleSessionData) {
isProcessingRequest = true
client.requestSMSSecurityCode(to: trustedPhoneNumber, authOptions: authOptions, sessionData: sessionData)
.receive(on: DispatchQueue.main)
.sink(
receiveCompletion: { completion in
self.handleAuthenticationFlowCompletion(completion)