From 84c27129d2b256b041674e18ab8f58f707340996 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 17 Aug 2020 16:25:57 +0200 Subject: [PATCH] Hotfix: Send correct message type --- lib/src/room.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/room.dart b/lib/src/room.dart index 74664a8..54f389b 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -662,8 +662,6 @@ class Room { String editEventId, }) async { type = type ?? EventTypes.Message; - final sendType = - (encrypted && client.encryptionEnabled) ? EventTypes.Encrypted : type; // Create new transaction id String messageID; @@ -726,7 +724,7 @@ class Room { // Send the text and on success, store and display a *sent* event. try { final res = await _sendContent( - sendType, + type, content, txid: messageID, );