Settings/Discovery: Use new threePidAddManager.cancel()

This commit is contained in:
manuroe
2019-10-02 09:54:08 +02:00
parent ba70c6093f
commit 107813e2fb
@@ -156,8 +156,11 @@ final class SettingsDiscoveryThreePidDetailsViewModel: SettingsDiscoveryThreePid
self.unregisterEmailValidationNotification()
}
// TODO: cancel
self.currentThreePidAddSession = nil
if let currentThreePidAddSession = self.currentThreePidAddSession {
self.threePidAddManager.cancel(session: currentThreePidAddSession)
self.currentThreePidAddSession = nil
}
self.checkThreePidDiscoverability()
}