refresh static method
- String channelUrl,
- {Chat? chat}
Refreshes all the data of this channel.
Implementation
static Future<GroupChannel> refresh(
String channelUrl, {
Chat? chat,
}) async {
sbLog.i(StackTrace.current, 'channelUrl: $channelUrl');
chat ??= SendbirdChat().chat;
return await chat.apiClient.send<GroupChannel>(
GroupChannelRefreshRequest(
chat,
channelUrl,
options: [
ChannelListQueryIncludeOption.includeMember,
ChannelListQueryIncludeOption.includeMetadata,
ChannelListQueryIncludeOption.includeReadReceipt,
ChannelListQueryIncludeOption.includeDeliveryReceipt,
],
passive: false,
),
);
}