Fix a TB.
This commit is contained in:
parent
40112aa128
commit
701fe4267f
|
@ -142,9 +142,10 @@ class ChatControlBase(MessageControl):
|
||||||
if resource is None:
|
if resource is None:
|
||||||
# We very likely got a contact with a random resource.
|
# We very likely got a contact with a random resource.
|
||||||
# This is bad, we need the highest for caps etc.
|
# This is bad, we need the highest for caps etc.
|
||||||
contact = gajim.contacts. \
|
c = gajim.contacts.get_contact_with_highest_priority(
|
||||||
get_contact_with_highest_priority(
|
|
||||||
acct, contact.jid)
|
acct, contact.jid)
|
||||||
|
if c:
|
||||||
|
contact = c
|
||||||
|
|
||||||
MessageControl.__init__(self, type_id, parent_win, widget_name,
|
MessageControl.__init__(self, type_id, parent_win, widget_name,
|
||||||
contact, acct, resource = resource);
|
contact, acct, resource = resource);
|
||||||
|
|
Loading…
Reference in New Issue