Message text on commands

This commit is contained in:
Mark Qvist 2024-06-05 00:13:00 +02:00
parent 2c3c0f40d1
commit d0fa61fb73

View File

@ -239,6 +239,7 @@ class Messages():
message_input = m["content"]
if message_input.strip() == b"":
if not ("lxm" in m and m["lxm"] != None and m["lxm"].fields != None and LXMF.FIELD_COMMANDS in m["lxm"].fields):
message_input = "[i]This message contains no text content[/i]".encode("utf-8")
message_markup = multilingual_markup(message_input)