Room user indicators

Signed-off-by: Andy Uhnak <andyuhnak@gmail.com>
This commit is contained in:
Andy Uhnak
2022-02-23 09:47:35 +00:00
parent bbc33ed0cf
commit 4617b3ed69
28 changed files with 458 additions and 329 deletions
+20 -2
View File
@@ -570,6 +570,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
isAppeared = NO;
[VoiceMessageMediaServiceProvider.sharedProvider pauseAllServices];
[self stopActivityIndicator];
}
- (void)viewDidAppear:(BOOL)animated
@@ -931,6 +932,18 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
self.updateRoomReadMarker = NO;
}
- (BOOL)providesCustomActivityIndicator {
return [self.delegate roomViewControllerCanDelegateUserIndicators:self];
}
- (void)startActivityIndicator {
if ([self providesCustomActivityIndicator]) {
[self.delegate roomViewControllerDidStartLoading:self];
} else {
[super startActivityIndicator];
}
}
- (void)stopActivityIndicator
{
if (notificationTaskProfile)
@@ -939,8 +952,13 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
[MXSDKOptions.sharedInstance.profiler stopMeasuringTaskWithProfile:notificationTaskProfile];
notificationTaskProfile = nil;
}
[super stopActivityIndicator];
if ([self providesCustomActivityIndicator]) {
if ([self canStopActivityIndicator]) {
[self.delegate roomViewControllerDidStopLoading:self];
}
} else {
[super stopActivityIndicator];
}
}
- (void)displayRoom:(MXKRoomDataSource *)dataSource