Avoid megolm share requests if the device is not verified

This commit is contained in:
Gil Eluard
2021-01-26 17:33:05 +01:00
parent 1dc4993adc
commit 7df79fb959
7 changed files with 36 additions and 336 deletions
@@ -405,6 +405,15 @@
- (void)onMatrixSessionStateDidChange:(NSNotification *)notif
{
MXSession *session = (MXSession*)notif.object;
if (session.state == MXSessionStateStoreDataReady)
{
if (session.crypto.crossSigning && session.crypto.crossSigning.state == MXCrossSigningStateCrossSigningExists)
{
[session.crypto setOutgoingKeyRequestsEnabled:NO onComplete:nil];
}
}
[self refreshTabBarBadges];
}