Make sure body is set
This commit is contained in:
parent
714154323b
commit
1bffe443bc
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ class Util {
|
|||
}
|
||||
|
||||
sendTextMessage(matrixClient, roomId, text, editedEvent, replyToEvent, txnId) {
|
||||
var content = ContentHelpers.makeTextMessage(text);
|
||||
var content = ContentHelpers.makeTextMessage(text ?? "");
|
||||
if (editedEvent) {
|
||||
content["m.relates_to"] = {
|
||||
rel_type: "m.replace",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue