mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Post data ready notification every time
This commit is contained in:
parent
c90c6a5ad4
commit
5f82518f11
1 changed files with 2 additions and 5 deletions
|
@ -977,11 +977,8 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
|||
|
||||
if (dataSource.state == MXKDataSourceStateReady)
|
||||
{
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RecentsViewControllerDataReadyNotification
|
||||
object:self];
|
||||
});
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RecentsViewControllerDataReadyNotification
|
||||
object:self];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue