replyToMessage method

void replyToMessage(
  1. ChatMessage originalMessage,
  2. ChatMessage newMessage,
  3. String room
)

Implementation

void replyToMessage(
    ChatMessage originalMessage, ChatMessage newMessage, String room) {
  ChatMessage toSendMessage = newMessage.copyWith(
      originalId: originalMessage.id,
      originalMessage: originalMessage.text,
      originality: MessageOriginality.reply);
  sendChatMessage(toSendMessage, room);
}