isMemberOnly property

bool? isMemberOnly
final

~english Checks whether users cannot join a chat group freely:

  • true: Yes. Needs the approval from the group owner(admin) or being invited by group members(PrivateOnlyOwnerInvite, PrivateMemberCanInvite, PublicJoinNeedApproval).
  • false: No. Users can join freely ChatGroupStyle.PublicOpenJoin.

Note There are four types of group properties used to define the style of a group: ChatGroupStyle.

Return Whether users can join a chat group with only the approval of the group owner(admin):

  • true: Yes. Needs the approval from the group owner(admin) or being invited by group members.
  • false: No. ~end

~chinese 从内存中获取群组类型:成员是否能自由加入,还是需要申请或者被邀请。

群组有四个类型属性,isMemberOnly是除了 ChatGroupStyle.PublicOpenJoin 之外的三种属性,表示该群不是自由加入的群组。

Note 如需最新数据,需先从服务器获取: ChatGroupManager.fetchGroupInfoFromServer

Return

  • true:进群需要群主邀请,群成员邀请,或者群主和管理员同意入群申请;
  • false:意味着用户可以自由加入群,不需要申请和被邀请。 ~end

Implementation

final bool? isMemberOnly;