forwardChatMessage method
Implementation
void forwardChatMessage(
ChatMessage toForwardMessage, String toId, String toName, String toRoom) {
ChatMessage newMessage = toForwardMessage.copyWith(
originalId: toForwardMessage.id,
originalMessage: toForwardMessage.text,
originality: MessageOriginality.forward,
toId: toId,
toName: toName,
sendTime: DateTime.now().millisecondsSinceEpoch);
sendChatMessage(newMessage, toRoom);
}