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

[FIX] Pushing multiple chat controllers on navigation stack when lagging #2405

Merged
merged 2 commits into from
Dec 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ extension SubscriptionsViewController: UITableViewDelegate {
// When using iPads, we override the detail controller creating
// a new instance.
if parent?.parent?.traitCollection.horizontalSizeClass == .compact {
guard navigationController?.topViewController == self else {
return
}

controller.subscription = subscription
navigationController?.pushViewController(controller, animated: true)
} else {
Expand Down