Skip to content
Snippets Groups Projects
Commit 04904140 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix saving MUC-PMs

If the JID is not in the DB we need a type to insert
parent 6a8bbe7e
No related branches found
No related tags found
No related merge requests found
......@@ -290,13 +290,17 @@ class Logger:
:param jid: The JID
:param type_: The JIDConstant type
:param kind: The KindConstant
:param type_: The JIDConstant
return the jid id
"""
if kind in (KindConstant.GC_MSG, KindConstant.GCSTATUS):
type_ = JIDConstant.ROOM_TYPE
elif kind is not None:
type_ = JIDConstant.NORMAL_TYPE
result = self._jid_ids.get(jid, None)
if result is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment