prevent traceback. Fixes #7053
This commit is contained in:
parent
be867b7843
commit
de4660b2e5
|
@ -1203,6 +1203,7 @@ class DecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
|||
self.forwarded = self.msg_obj.forwarded
|
||||
self.sent = self.msg_obj.sent
|
||||
self.popup = False
|
||||
self.msg_id = None # id in log database
|
||||
|
||||
self.receipt_request_tag = self.stanza.getTag('request',
|
||||
namespace=xmpp.NS_RECEIPTS)
|
||||
|
|
|
@ -74,8 +74,6 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
|||
if self.control and self.control.resource:
|
||||
self.control.change_resource(self.resource)
|
||||
|
||||
obj.msg_id = None
|
||||
|
||||
if obj.mtype == 'chat':
|
||||
if not obj.stanza.getTag('body') and obj.chatstate is None:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue