mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Improve message display on attachment-only messages
This commit is contained in:
parent
11d73090ed
commit
7cf53ba62a
@ -238,6 +238,9 @@ class Messages():
|
|||||||
else:
|
else:
|
||||||
message_input = m["content"]
|
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)
|
message_markup = multilingual_markup(message_input)
|
||||||
|
|
||||||
txstr = time.strftime(ts_format, time.localtime(m["sent"]))
|
txstr = time.strftime(ts_format, time.localtime(m["sent"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user