updateMetaCounters method
Updates meta counters.
Implementation
Future<Map<String, int>> updateMetaCounters(
Map<String, int> metaCounters) async {
sbLog.i(StackTrace.current, 'metaCounters: $metaCounters');
checkUnsupportedAction();
if (metaCounters.isEmpty) {
throw InvalidParameterException();
}
return await chat.apiClient.send(
ChannelMetaCounterUpdateRequest(
chat,
channelType: channelType,
channelUrl: channelUrl,
metaCounter: metaCounters,
mode: UpdateMetaCounterMode.set,
),
);
}