removeGroup method

  1. @override
void removeGroup(
  1. String groupId
)
override

Implementation

@override
void removeGroup(String groupId) {
  ChatMessage msg = ChatMessage(
      id: groupId,
      type: MessageType.removeGroup,
      text: groupId,
      roomId: '',
      sendTime: 0);

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