Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 1192527

Browse files
authored
Merge pull request #2405 from RocketChat/fix/lag_push_chat
[FIX] Pushing multiple chat controllers on navigation stack when lagging
2 parents 9fcd72d + ee71c49 commit 1192527

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Rocket.Chat/Controllers/Subscriptions/SubscriptionsList/SubscriptionsViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ extension SubscriptionsViewController: UITableViewDelegate {
511511
// When using iPads, we override the detail controller creating
512512
// a new instance.
513513
if parent?.parent?.traitCollection.horizontalSizeClass == .compact {
514+
guard navigationController?.topViewController == self else {
515+
return
516+
}
517+
514518
controller.subscription = subscription
515519
navigationController?.pushViewController(controller, animated: true)
516520
} else {

0 commit comments

Comments
 (0)