mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Avoid megolm share requests if the device is not verified
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user