Fix: (ement-send-message) Sending in Org format

Oops, broke that when I used --format-body-mentions here.
This commit is contained in:
Adam Porter 2022-05-13 02:15:13 -05:00
parent 0d95f4ed19
commit 94faf1261b

View file

@ -422,7 +422,8 @@ e.g. `ement-room-send-org-filter')."
(pcase-let* (((cl-struct ement-room (id room-id)) room)
(endpoint (format "rooms/%s/send/m.room.message/%s" (url-hexify-string room-id)
(ement--update-transaction-id session)))
(formatted-body (ement--format-body-mentions (or formatted-body body) room))
(formatted-body (when formatted-body
(ement--format-body-mentions formatted-body room)))
(content (ement-aprog1
(ement-alist "msgtype" "m.text"
"body" body)