updatePermission method

void updatePermission()

Implementation

void updatePermission() async {
  if (thread == null) return;
  Group? group = await ChatUIKit.instance.getGroup(groupId: thread!.parentId);
  if (group?.permissionType == GroupPermissionType.Owner) {
    hasPermission = true;
  } else {
    hasPermission = false;
  }
}