mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 15:52:40 +00:00
didMXSessionInviteRoomUpdate
Refresh the sections indexes before refreshing the list.
This commit is contained in:
parent
bc0aedab89
commit
ef03fba63d
1 changed files with 7 additions and 1 deletions
|
@ -97,6 +97,7 @@
|
|||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
// refresh the sections
|
||||
[self refreshRoomsSections];
|
||||
|
||||
// And inform the delegate about the update
|
||||
|
@ -110,11 +111,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
- (void)didMXSessionInviteRoomUpdate:(NSNotification *)notif
|
||||
{
|
||||
MXSession *mxSession = notif.object;
|
||||
if (mxSession == self.mxSession)
|
||||
{
|
||||
// refresh the sections
|
||||
[self refreshRoomsSections];
|
||||
|
||||
// And inform the delegate about the update
|
||||
[self.delegate dataSource:self didCellChange:nil];
|
||||
}
|
||||
}
|
||||
|
@ -468,7 +474,7 @@
|
|||
// 1 - call [super thisNewMethod]
|
||||
// 2 - call [self refreshRoomsSections]
|
||||
|
||||
// refresh the
|
||||
// refresh the sections
|
||||
[self refreshRoomsSections];
|
||||
|
||||
// Call super to keep update readyRecentsDataSourceArray.
|
||||
|
|
Loading…
Reference in a new issue