Closed mkhandium closed 1 year ago
FYI Deleting a conversation uses the proper cid
if you access it from the more menu, instead of using the trailing delete action button.
Found the related code in the ChatChannelListViewModel
let controller = chatClient.channelController(
for: .init(type: .messaging, id: channel.cid.id)
)
controller.deleteChannel { [weak self] error in
if error != nil {
// handle error
self?.channelAlertType = .error
}
}
}```
The type is hardcoded to be `messaging` instead of the channel's actual `ChannelType`
Going to close this issue because this is an issue with the swift-ui sdk not the swift sdk.
What did you do?
Swiped left on a channel. Tapped the delete button.
What did you expect to happen?
Delete the channel.
What happened instead?
Got an error with the message