Feature/5327 releaseprep

This commit is contained in:
Frank Rotermund
2023-11-21 06:33:20 +00:00
parent 212c32adb4
commit 958727d304
11 changed files with 91 additions and 26 deletions
+3 -3
View File
@@ -8217,7 +8217,7 @@ static CGSize kThreadListBarButtonItemImageSize;
if( [profile isLogable] ) {
[self.roomDataSource.room members:^(MXRoomMembers *roomMembers) {
NSUInteger noOfUsers = roomMembers.joinedMembers.count;
[BWIAnalyticsHelper getRoomDeviceCountWithRoom:self.roomDataSource.room completion:^(NSInteger deviceCount) {
[[BWIAnalyticsHelper shared] getRoomDeviceCountWithRoom:self.roomDataSource.room completion:^(NSInteger deviceCount) {
[profile log2AnalyticsWithUsers:noOfUsers devices:deviceCount];
}];
} failure:^(NSError *error) {
@@ -8228,8 +8228,8 @@ static CGSize kThreadListBarButtonItemImageSize;
// Bwi #4795: voice message
- (void) trackVoiceMessage:(NSInteger)duration {
[BWIAnalyticsHelper getRoomDeviceCountWithRoom:self.roomDataSource.room completion:^(NSInteger deviceCount) {
NSString *deviceCountString = [BWIAnalyticsHelper dimensionForDeviceCount: deviceCount];
[[BWIAnalyticsHelper shared] getRoomDeviceCountWithRoom:self.roomDataSource.room completion:^(NSInteger deviceCount) {
NSString *deviceCountString = [[BWIAnalyticsHelper shared] dimensionForDeviceCount: deviceCount];
NSNumber *durationInSeconds = [NSNumber numberWithInteger:(duration / 1000)];
[BWIAnalytics.sharedTracker trackEventWithDimensionWithCategory:@"Feature" action:@"SendVoiceMessage" dimension:deviceCountString value:durationInSeconds name:@"send_voice_message_default"];
}];