mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #6301 from vector-im/ismail/6271_scrollback_spinner
This commit is contained in:
commit
9a0fbc70a7
3 changed files with 4 additions and 10 deletions
|
@ -2528,7 +2528,7 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
|||
- (void)stopActivityIndicator {
|
||||
if (self.userIndicatorStore) {
|
||||
if (loadingIndicatorCancel) {
|
||||
MXLogDebug(@"[RecentsViewController] Present loading indicator")
|
||||
MXLogDebug(@"[RecentsViewController] Dismiss loading indicator")
|
||||
loadingIndicatorCancel();
|
||||
loadingIndicatorCancel = nil;
|
||||
}
|
||||
|
|
|
@ -1903,10 +1903,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
__block UserIndicatorCancel cancelIndicator;
|
||||
NSTimer *indicatorTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 repeats:NO block:^(NSTimer * _Nonnull timer) {
|
||||
cancelIndicator = [self.userIndicatorStore presentLoadingWithLabel:[VectorL10n homeSyncing] isInteractionBlocking:NO];
|
||||
}];
|
||||
UserIndicatorCancel cancelIndicator = [self.userIndicatorStore presentLoadingWithLabel:[VectorL10n loading] isInteractionBlocking:NO];
|
||||
|
||||
// Store the current height of the first bubble (if any)
|
||||
backPaginationSavedFirstBubbleHeight = 0;
|
||||
|
@ -1993,8 +1990,6 @@
|
|||
[self updateCurrentEventIdAtTableBottom:NO];
|
||||
}
|
||||
|
||||
[indicatorTimer invalidate];
|
||||
|
||||
if (cancelIndicator) {
|
||||
cancelIndicator();
|
||||
}
|
||||
|
@ -2012,9 +2007,7 @@
|
|||
[self reloadBubblesTable:NO];
|
||||
|
||||
self.bubbleTableViewDisplayInTransition = NO;
|
||||
|
||||
[indicatorTimer invalidate];
|
||||
|
||||
|
||||
if (cancelIndicator) {
|
||||
cancelIndicator();
|
||||
}
|
||||
|
|
1
changelog.d/6271.bugfix
Normal file
1
changelog.d/6271.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Room: Present loading indicator immediately on pagination and change wording.
|
Loading…
Reference in a new issue