refresh static method

Future<GroupChannel> refresh(
  1. String channelUrl,
  2. {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,
    ),
  );
}