Fix saving MUC-PMs
If the JID is not in the DB we need a type to insert
This commit is contained in:
parent
6a8bbe7e71
commit
0490414079
1 changed files with 5 additions and 1 deletions
|
@ -290,13 +290,17 @@ class Logger:
|
||||||
|
|
||||||
:param jid: The JID
|
:param jid: The JID
|
||||||
|
|
||||||
:param type_: The JIDConstant type
|
:param kind: The KindConstant
|
||||||
|
|
||||||
|
:param type_: The JIDConstant
|
||||||
|
|
||||||
return the jid id
|
return the jid id
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if kind in (KindConstant.GC_MSG, KindConstant.GCSTATUS):
|
if kind in (KindConstant.GC_MSG, KindConstant.GCSTATUS):
|
||||||
type_ = JIDConstant.ROOM_TYPE
|
type_ = JIDConstant.ROOM_TYPE
|
||||||
|
elif kind is not None:
|
||||||
|
type_ = JIDConstant.NORMAL_TYPE
|
||||||
|
|
||||||
result = self._jid_ids.get(jid, None)
|
result = self._jid_ids.get(jid, None)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue