Commit 525010fc authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't fail when we receive a MAM message without a body. Fixes #8140

parent d111a415
......@@ -1103,7 +1103,8 @@ def save_if_not_exists(self, with_, direction, tim, msg='', nick=None):
time_col = int(float(time.mktime(tim)))
time_col = int(float(time.time()))
if msg:
if not msg:
if self.jid_is_from_pm(with_) or nick:
# It's a groupchat message
if nick:
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