fix logging sent single messages. Fixes #7207
This commit is contained in:
parent
cab5228220
commit
bbca2284ac
|
@ -2042,6 +2042,8 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
return
|
return
|
||||||
if isinstance(jid, list):
|
if isinstance(jid, list):
|
||||||
for j in jid:
|
for j in jid:
|
||||||
|
if session is None:
|
||||||
|
session = self.get_or_create_session(j, '')
|
||||||
self.log_message(j, msg, forward_from, session,
|
self.log_message(j, msg, forward_from, session,
|
||||||
original_message, subject, type_, xhtml)
|
original_message, subject, type_, xhtml)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -2468,7 +2468,7 @@ class MessageOutgoingEvent(nec.NetworkOutgoingEvent):
|
||||||
self.session = None
|
self.session = None
|
||||||
self.forward_from = None
|
self.forward_from = None
|
||||||
self.form_node = None
|
self.form_node = None
|
||||||
self.original_message = ''
|
self.original_message = None
|
||||||
self.delayed = None
|
self.delayed = None
|
||||||
self.callback = None
|
self.callback = None
|
||||||
self.callback_args = []
|
self.callback_args = []
|
||||||
|
|
Loading…
Reference in New Issue