requestJoinGroup method

dynamic requestJoinGroup(
  1. BuildContext context,
  2. CometChatTheme theme
)

Implementation

requestJoinGroup(BuildContext context, CometChatTheme theme) async {
  if (passwordsFieldKey.currentState!.validate()) {
    if (onJoinTap != null) {
      onJoinTap!(group: group, password: textEditingController.text);
    } else {
      final String guid = group.guid;
      _joinGroup(
          guid: guid,
          groupType: GroupTypeConstants.password,
          password: textEditingController.text,
          theme: theme,
          context: context);
    }
  }
}