sendPrivateChatHistory method

void sendPrivateChatHistory(
  1. String? identity
)

Implementation

void sendPrivateChatHistory(String? identity) {
  if (identity == null) return;
  if (!hasPrivateChat(identity)) return;
  final payload = ChatMessageMapper.toApiList(getPrivateMessage()[identity]?.chats ?? []);
  sendPrivateAction(
    ActionModel(action: MeetingActions.sendPrivateChat, userIdentity: room.localParticipant?.identity, messages: payload),
    identity,
  );
}