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
3 changed files with 5 additions and 5 deletions
@@ -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
@@ -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)