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