refreshChannel static method
- ChannelType channelType,
- String channelUrl,
- {Chat? chat}
Implementation
static Future<BaseChannel> refreshChannel(
ChannelType channelType,
String channelUrl, {
Chat? chat,
}) async {
if (channelType == ChannelType.group) {
return GroupChannel.refresh(channelUrl, chat: chat);
} else if (channelType == ChannelType.open) {
return OpenChannel.refresh(channelUrl, chat: chat);
} else {
return FeedChannel.refresh(channelUrl, chat: chat);
}
}