Skip to content

Commit

Permalink
Rename Notification
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Buquet <[email protected]>
  • Loading branch information
NicolasBuquet committed Nov 20, 2023
1 parent 4d7df67 commit 159c93d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MatrixSDK/MXSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/**
Expand Down
4 changes: 2 additions & 2 deletions MatrixSDK/MXSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 159c93d

Please sign in to comment.