refresh static method

Future<OpenChannel> refresh(
  1. String channelUrl
)

Refreshes an OpenChannel with given channelUrl

Implementation

static Future<OpenChannel> refresh(String channelUrl) async {
  final sdk = SendbirdSdk().getInternal();
  final channel = await sdk.api.send<OpenChannel>(
    OpenChannelRefreshRequest(
      channelUrl: channelUrl,
      options: [ChannelQueryIncludeOption.metaData],
      passive: false,
    ),
  );
  return channel;
}