Bug fix: reset recents on logout

This commit is contained in:
giomfo
2014-11-28 15:06:53 +01:00
parent 26ca6fa6b1
commit 330cd63ab9
3 changed files with 20 additions and 6 deletions
@@ -196,6 +196,9 @@
if (_preSelectedRoomId) {
self.preSelectedRoomId = _preSelectedRoomId;
}
} else {
recents = nil;
[self.tableView reloadData];
}
}
@@ -205,10 +208,8 @@
#pragma mark - KVO
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if ([@"isInitialSyncDone" isEqualToString:keyPath])
{
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
if ([@"isInitialSyncDone" isEqualToString:keyPath]) {
dispatch_async(dispatch_get_main_queue(), ^{
[self configureView];
});