component AP gateway: handle attachments
This commit is contained in:
parent
072f0cc723
commit
c3f97ec712
1 changed files with 168 additions and 97 deletions
|
|
@ -223,7 +223,7 @@ class Message:
|
|||
|
||||
@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 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
)
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue