Use areAllTermsAgreed instead of hasAccountDataIdentityServerValue. Move identity server terms modal from LegacyAppDelegate into ContactsTableViewController.

This commit is contained in:
Doug
2021-08-11 17:13:15 +01:00
parent ebe568bc6c
commit 08188e3ffa
3 changed files with 128 additions and 94 deletions
@@ -97,7 +97,7 @@
self = [super initWithMatrixSession:mxSession];
if (self) {
// Only show local contacts when contact sync is enabled and the identity server terms of service have been accepted.
_showLocalContacts = MXKAppSettings.standardAppSettings.syncLocalContacts && self.mxSession.hasAccountDataIdentityServerValue;
_showLocalContacts = MXKAppSettings.standardAppSettings.syncLocalContacts && self.mxSession.identityService.areAllTermsAgreed;
}
return self;
}