changeGroupName method

Future<void> changeGroupName({
  1. required String groupId,
  2. required String name,
})

Implementation

Future<void> changeGroupName({
  required String groupId,
  required String name,
}) {
  return checkResult(ChatSDKEvent.changeGroupName, () async {
    await Client.getInstance.groupManager.changeGroupName(
      groupId,
      name,
    );
    Group? group = await Client.getInstance.groupManager.getGroupWithId(
      groupId,
    );

    onGroupNameChangedByMeSelf(group!);
  });
}