Preventing pop to root when leaving channel

Hi, we are using the Sendbird UI Kit version 2.2.1 and we are facing a major issue when leaving a channel where the UI kit pops to the root controller with (apparently) no way of customization.

Our navigation stack looks like this:

  • NavigationController
    • ControllerA
    • ControllerB
    • SBUChannelViewController
    • SBUChannelSettingsViewController

When leaving a channel, it’s popping directly to ControllerA while we want it to pop to ControllerB. I figured this is caused by SBUBaseChannelSettingViewController line 293.

Since we are importing the UI kit with SPM, are we missing something or should we import it directly into the project and customize it?

Thanks!