Merge pull request #5822 from vector-im/ismail/5441_thread_timeline_fixes

Thread Timeline Fixes
This commit is contained in:
ismailgulek 2022-03-17 13:16:49 +03:00 committed by GitHub
commit 0a5164a435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -968,11 +968,6 @@ const CGFloat kTypingCellHeight = 24;
- (void)threadingService:(MXThreadingService *)service didCreateNewThread:(MXThread *)thread direction:(MXTimelineDirection)direction
{
if (self.threadId)
{
// no need to reload the thread screen
return;
}
if (direction == MXTimelineDirectionBackwards)
{
// no need to reload when paginating back

View file

@ -68,6 +68,10 @@ final class ThreadsCoordinator: NSObject, ThreadsCoordinatorProtocol {
// Detect when view controller has been dismissed by gesture when presented modally (not in full screen).
self.navigationRouter.toPresentable().presentationController?.delegate = self
guard parameters.threadId == nil else {
return
}
if self.navigationRouter.modules.isEmpty == false {
self.navigationRouter.push(rootCoordinator, animated: true, popCompletion: { [weak self] in
self?.remove(childCoordinator: rootCoordinator)

1
changelog.d/5441.change Normal file
View file

@ -0,0 +1 @@
RoomDataSource: Reload thread screen for the first message.