mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Change/Fix: (ement-room--format-message-body) Ignore nil bodies
This shouldn't happen, but it did once, so let's protect against it for now.
This commit is contained in:
parent
591e486598
commit
2abc3a03db
1 changed files with 3 additions and 1 deletions
|
@ -1385,7 +1385,9 @@ If FORMATTED-P, return the formatted body content, when available."
|
|||
(appendix (pcase msgtype
|
||||
("m.image" (ement-room--format-m.image event))
|
||||
(_ nil))))
|
||||
(setf body (ement-room--linkify-urls body))
|
||||
(when body
|
||||
;; HACK: Once I got an error when body was nil, so let's avoid that.
|
||||
(setf body (ement-room--linkify-urls body)))
|
||||
(when appendix
|
||||
(setf body (concat body " " appendix)))
|
||||
body))
|
||||
|
|
Loading…
Add table
Reference in a new issue