From 159c93d9bf76f9a942f5dbc3da323c00ea538f6e Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Mon, 20 Nov 2023 14:35:10 +0100 Subject: [PATCH] Rename Notification Signed-off-by: Nicolas Buquet --- MatrixSDK/MXSession.h | 4 ++-- MatrixSDK/MXSession.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MatrixSDK/MXSession.h b/MatrixSDK/MXSession.h index e5eac575f..3f673a8bb 100644 --- a/MatrixSDK/MXSession.h +++ b/MatrixSDK/MXSession.h @@ -306,10 +306,10 @@ FOUNDATION_EXPORT NSString *const kMXSessionDidUpdatePublicisedGroupsForUsersNot Posted when MXSession has finished its initial sync. No userInfo passed. -`kMXSessionInitialSyncDone` notification will allow client to perform auto-activation +`kMXSessionInitialSyncDoneNotification` notification will allow client to perform auto-activation of cross-signing as in Android client (see `observeInitialSync` calling `maybeVerifyOrBootstrapCrossSigning`) */ -FOUNDATION_EXPORT NSString *const kMXSessionInitialSyncDone; +FOUNDATION_EXPORT NSString *const kMXSessionInitialSyncDoneNotification; #pragma mark - Notifications keys /** diff --git a/MatrixSDK/MXSession.m b/MatrixSDK/MXSession.m index 33ad69302..a1506a831 100644 --- a/MatrixSDK/MXSession.m +++ b/MatrixSDK/MXSession.m @@ -71,7 +71,7 @@ NSString *const kMXSessionDidUpdateGroupRoomsNotification = @"kMXSessionDidUpdateGroupRoomsNotification"; NSString *const kMXSessionDidUpdateGroupUsersNotification = @"kMXSessionDidUpdateGroupUsersNotification"; NSString *const kMXSessionDidUpdatePublicisedGroupsForUsersNotification = @"kMXSessionDidUpdatePublicisedGroupsForUsersNotification"; -NSString *const kMXSessionInitialSyncDone = @"kMXSessionInitialSyncDone"; +NSString *const kMXSessionInitialSyncDoneNotification = @"kMXSessionInitialSyncDoneNotification"; NSString *const kMXSessionNotificationRoomIdKey = @"roomId"; NSString *const kMXSessionNotificationGroupKey = @"group"; @@ -1549,7 +1549,7 @@ - (void)serverSyncWithServerTimeout:(NSUInteger)serverTimeout // Emit `InitialSyncDone` notification to allow client to perform auto-activation // of cross-signing as in Android client (see `observeInitialSync` calling `maybeVerifyOrBootstrapCrossSigning`) - [NSNotificationCenter.defaultCenter postNotificationName:kMXSessionInitialSyncDone object:nil]; + [NSNotificationCenter.defaultCenter postNotificationName:kMXSessionInitialSyncDoneNotification object:nil]; } // By default, the next sync will be a long polling (with the default server timeout value)