updateGroupExtension method Null safety
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 {@link EMError}.
Implementation
Future<void> updateGroupExtension(
String groupId,
String extension,
) async {
Map req = {'groupId': groupId, 'ext': extension};
Map result =
await _channel.invokeMethod(ChatMethodKeys.updateGroupExt, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}