Improve message display on attachment-only messages

This commit is contained in:
Mark Qvist 2024-06-04 15:51:07 +02:00
parent 11d73090ed
commit 7cf53ba62a

View File

@ -238,6 +238,9 @@ class Messages():
else:
message_input = m["content"]
if message_input.strip() == b"":
message_input = "[i]This message contains no text content[/i]".encode("utf-8")
message_markup = multilingual_markup(message_input)
txstr = time.strftime(ts_format, time.localtime(m["sent"]))