When SBUBaseChannelViewController is initialized with a certain channel ID and then loads a different channel by calling loadChannel(channelUrl:messageListParams:), the channelUrl property is not updated.
This results in a bug where the pending message doesn’t get removed.
The code proceeds as follows:
SBUPendingMessageManager.shared.upsertPendingMessage is called with baseChannel.channelUrl
Subsequent calls to SBUPendingMessageManager are called with channelUrl.
I confirmed that the first insert to SBUBaseChannelViewController.pendingMessages is called with the correct channel ID whereas later calls for the pending status and success status are called with the initial channel ID.
Hi @GoGo7
Sorry for too late checking your problem. ChannelViewController was not originally designed to change channels internally.
But through the loadChannel function, it should be able to the process you want.
And thanks to your information I found a problem that the logic of not updating the channelURL.
I will fix this problem in the new version. However, the regular distribution schedule is in two weeks.
Can you wait for the distribution?