Hotfix: Send correct message type

This commit is contained in:
Christian Pauly 2020-08-17 16:25:57 +02:00
parent ea59c4bd94
commit 84c27129d2
1 changed files with 1 additions and 3 deletions

View File

@ -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,
);