mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-31 10:39:16 -04:00
Improve message display on attachment-only messages
This commit is contained in:
parent
11d73090ed
commit
7cf53ba62a
1 changed files with 3 additions and 0 deletions
|
@ -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"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue