Define JID type when searching for duplciates

Fixes #9163
This commit is contained in:
Philipp Hörist 2018-06-01 17:46:26 +02:00
parent 6413c568d4
commit 2abbb1e224
1 changed files with 5 additions and 1 deletions

View File

@ -1287,7 +1287,11 @@ class Logger:
if not ids:
return False
archive_id = self.get_jid_id(archive_jid)
type_ = JIDConstant.NORMAL_TYPE
if groupchat:
type_ = JIDConstant.ROOM_TYPE
archive_id = self.get_jid_id(archive_jid, type_=type_)
account_id = self.get_account_id(account)
if groupchat: