Fix tests
This commit is contained in:
parent
290e761f88
commit
dadc85bb52
|
@ -29,7 +29,6 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from gajim.common import app
|
|
||||||
from gajim.common import caps_cache
|
from gajim.common import caps_cache
|
||||||
from gajim.common.account import Account
|
from gajim.common.account import Account
|
||||||
from gajim import common
|
from gajim import common
|
||||||
|
@ -523,9 +522,6 @@ class Contacts():
|
||||||
def get_groupchat_contact(self, jid):
|
def get_groupchat_contact(self, jid):
|
||||||
if jid in self._contacts:
|
if jid in self._contacts:
|
||||||
contacts = self._contacts[jid]
|
contacts = self._contacts[jid]
|
||||||
if len(contacts) > 1:
|
|
||||||
app.log('contacts').warning(
|
|
||||||
'Groupchat Contact found more than once')
|
|
||||||
if contacts[0].is_groupchat():
|
if contacts[0].is_groupchat():
|
||||||
return contacts[0]
|
return contacts[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue