mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Bug Fix - Settings: Signout button gives zero user feedback when tapped
https://github.com/vector-im/vector-ios/issues/302
This commit is contained in:
@@ -126,8 +126,11 @@
|
||||
// Add observer to handle removed accounts
|
||||
removedAccountObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKAccountManagerDidRemoveAccountNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
|
||||
|
||||
// Refresh table to remove this account
|
||||
[self.tableView reloadData];
|
||||
if ([MXKAccountManager sharedManager].accounts.count)
|
||||
{
|
||||
// Refresh table to remove this account
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
}];
|
||||
|
||||
@@ -993,7 +996,17 @@
|
||||
|
||||
- (void)onSignout:(id)sender
|
||||
{
|
||||
[[MXKAccountManager sharedManager] logout];
|
||||
UIButton *signOutButton = (UIButton*)sender;
|
||||
[signOutButton setTintColor:[UIColor lightGrayColor]];
|
||||
signOutButton.enabled = NO;
|
||||
|
||||
[self startActivityIndicator];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
[[MXKAccountManager sharedManager] logout];
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
- (void)togglePushNotifications:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user