Fix sending messages

This commit is contained in:
Mads Marquart
2020-01-13 12:47:21 +01:00
parent 7c7ac1f1f6
commit 3c35770eca

View File

@@ -110,7 +110,7 @@ class ThreadABC(metaclass=abc.ABCMeta):
"""
data = self._to_send_data()
data["action_type"] = "ma-type:user-generated-message"
if text is None: # To support `send_files`
if text is not None: # To support `send_files`
data["body"] = text
for i, mention in enumerate(mentions or ()):