updateGroupExtension method
Updates the group extension field.
Only the group owner or admin can call this method.
Param groupId
The group ID.
Param extension
The group extension field.
Throws A description of the exception. See ChatError.
Implementation
Future<void> updateGroupExtension(
String groupId,
String extension,
) async {
Map req = {'groupId': groupId, 'ext': extension};
Map result =
await _channel.invokeMethod(ChatMethodKeys.updateGroupExt, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}