Fix bug where RequestContactsAccessFooterView could still be visible beneath the contacts.

This commit is contained in:
Doug
2021-08-12 12:20:08 +01:00
parent dff82d9f95
commit db91583daa
@@ -99,6 +99,12 @@ final class ServiceTermsModalScreenViewModel: ServiceTermsModalScreenViewModelTy
return
}
self.update(viewState: .accepted)
// Send a notification to update the identity service immediately.
let userInfo = [MXIdentityServiceNotificationIdentityServerKey: self.serviceTerms.baseUrl]
NotificationCenter.default.post(name: .MXIdentityServiceTermsAccepted, object: nil, userInfo: userInfo)
// Notify the delegate.
self.coordinatorDelegate?.serviceTermsModalScreenViewModelDidAccept(self)
}, failure: { [weak self] (error) in