From 1ed81fb60c456d9fb1777e6c31e4e412ce9ff4d3 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 28 Jul 2021 14:57:23 +0100 Subject: [PATCH 1/2] Only post did change identity server notification if the server actually changed. --- MatrixSDK/MXSession.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MatrixSDK/MXSession.m b/MatrixSDK/MXSession.m index f9a0114513..912dbe9651 100644 --- a/MatrixSDK/MXSession.m +++ b/MatrixSDK/MXSession.m @@ -1725,11 +1725,11 @@ - (void)handleAccountData:(NSDictionary*)accountDataUpdate // Use the IS from the account data [self setIdentityServer:identityServer andAccessToken:nil]; + + [[NSNotificationCenter defaultCenter] postNotificationName:kMXSessionAccountDataDidChangeIdentityServerNotification + object:self + userInfo:nil]; } - - [[NSNotificationCenter defaultCenter] postNotificationName:kMXSessionAccountDataDidChangeIdentityServerNotification - object:self - userInfo:nil]; } } From 539b2d5496d26783bce57b1470a1eacb7e405cb5 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 28 Jul 2021 14:58:43 +0100 Subject: [PATCH 2/2] Update CHANGES.rst. --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 5ed7a1ab5b..a5fb20f235 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,7 @@ Changes to be released in next version 🐛 Bugfix * MXCryptoStore: Keep current store version after resetting data to avoid dead state on an initial sync (vector-im/element-ios/issues/4594). * Prevent session pause until reject/hangup event is sent (vector-im/element-ios/issues/4612). + * Only post identity server changed notification if the server actually changed. ⚠️ API Changes *