Commit 300b504c authored by Yann Leboulanger's avatar Yann Leboulanger

fix logging sent single messages. Fixes #7207

parent e6deb0cc
......@@ -2042,6 +2042,8 @@ def cb(jid, msg, keyID, forward_from, session, original_message,
return
if isinstance(jid, list):
for j in jid:
if session is None:
session = self.get_or_create_session(j, '')
self.log_message(j, msg, forward_from, session,
original_message, subject, type_, xhtml)
else:
......
......@@ -2448,7 +2448,7 @@ def init(self):
self.session = None
self.forward_from = None
self.form_node = None
self.original_message = ''
self.original_message = None
self.delayed = None
self.callback = None
self.callback_args = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment