Reload data source when a new thread created

This commit is contained in:
ismailgulek
2021-11-11 22:28:29 +03:00
parent f9f7bc085b
commit e41d889e5e
@@ -93,6 +93,11 @@ const CGFloat kTypingCellHeight = 24;
}];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(newThreadCreated:)
name:MXThreadingService.newThreadCreated
object:nil];
[self registerKeyVerificationRequestNotification];
[self registerKeyVerificationTransactionNotification];
[self registerTrustLevelDidChangeNotifications];
@@ -1119,6 +1124,13 @@ const CGFloat kTypingCellHeight = 24;
cell.attachmentView.accessibilityLabel = nil;
}
#pragma mark - Threads
- (void)newThreadCreated:(NSNotification *)notification
{
[self reload];
}
#pragma mark - BubbleReactionsViewModelDelegate
- (void)bubbleReactionsViewModel:(BubbleReactionsViewModel *)viewModel didAddReaction:(MXReactionCount *)reactionCount forEventId:(NSString *)eventId