createGroup method
void
createGroup({
- required String name,
- required List<
RoomMember> members, - String? password,
override
Implementation
@override
void createGroup(
{required String name,
required List<RoomMember> members,
String? password}) {
String id = const Uuid().v4();
GroupCrudMessage msg = GroupCrudMessage(
id: id,
type: MessageType.addGroup,
name: name,
sendTime: 0,
members: members);
String topic = id.toGroupCrudTopic;
clientHandler.sendPayload(msg.toJson().toString(), topic);
}