addUsersToGroup method

  1. @override
void addUsersToGroup(
  1. String groupId,
  2. List<RoomMember> members,
  3. bool showPreviousHistory
)
override

Implementation

@override
void addUsersToGroup(
    String groupId, List<RoomMember> members, bool showPreviousHistory) {
  GroupCrudMessage msg = GroupCrudMessage(
      id: groupId,
      type: MessageType.addGroup,
      name: '',
      sendTime: 0,
      members: members);

  String topic = groupId.toGroupCrudTopic;
  clientHandler.sendPayload(msg.toJson().toString(), topic);
}