Hotfix: Send correct message type
This commit is contained in:
parent
ea59c4bd94
commit
84c27129d2
|
@ -662,8 +662,6 @@ class Room {
|
||||||
String editEventId,
|
String editEventId,
|
||||||
}) async {
|
}) async {
|
||||||
type = type ?? EventTypes.Message;
|
type = type ?? EventTypes.Message;
|
||||||
final sendType =
|
|
||||||
(encrypted && client.encryptionEnabled) ? EventTypes.Encrypted : type;
|
|
||||||
|
|
||||||
// Create new transaction id
|
// Create new transaction id
|
||||||
String messageID;
|
String messageID;
|
||||||
|
@ -726,7 +724,7 @@ class Room {
|
||||||
// Send the text and on success, store and display a *sent* event.
|
// Send the text and on success, store and display a *sent* event.
|
||||||
try {
|
try {
|
||||||
final res = await _sendContent(
|
final res = await _sendContent(
|
||||||
sendType,
|
type,
|
||||||
content,
|
content,
|
||||||
txid: messageID,
|
txid: messageID,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue