Mercurial > libervia-backend
diff sat_frontends/quick_frontend/quick_chat.py @ 4023:78b5f356900c
component AP gateway: handle attachments
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 23 Mar 2023 15:42:21 +0100 |
parents | be6d91572633 |
children | 524856bd7b19 |
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py Thu Mar 23 15:39:48 2023 +0100 +++ b/sat_frontends/quick_frontend/quick_chat.py Thu Mar 23 15:42:21 2023 +0100 @@ -223,7 +223,7 @@ @property def attachments(self): - return self.extra.get(C.MESS_KEY_ATTACHMENTS) + return self.extra.get(C.KEY_ATTACHMENTS) class MessageWidget: @@ -733,7 +733,7 @@ ) return - if ((not msg and not subject and not extra[C.MESS_KEY_ATTACHMENTS] + if ((not msg and not subject and not extra[C.KEY_ATTACHMENTS] and type_ != C.MESS_TYPE_INFO)): log.warning("Received an empty message for uid {}".format(uid)) return