MXProfiles: Track time to display a message from its notification

This commit is contained in:
manuroe
2020-11-11 22:49:46 +01:00
parent b8f578a933
commit 4e84d8b2ec
4 changed files with 31 additions and 0 deletions
@@ -1109,6 +1109,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
- (void)pushNotificationService:(PushNotificationService *)pushNotificationService shouldNavigateToRoomWithId:(NSString *)roomId
{
[MXSDKOptions.sharedInstance.profiler startMeasuringTaskWithName:AnalyticsNoficationsTimeToDisplayContent
category:AnalyticsNoficationsCategory];
_lastNavigatedRoomIdFromPush = roomId;
[self navigateToRoomById:roomId];
}