Several small bugfixes: Add missing accout parameter to constructors.
This commit is contained in:
parent
89b1c6a7df
commit
8a127b4e4d
|
@ -46,8 +46,6 @@ class CommonContact(XMPPEntity):
|
||||||
|
|
||||||
XMPPEntity.__init__(self, jid, account, resource)
|
XMPPEntity.__init__(self, jid, account, resource)
|
||||||
|
|
||||||
self.jid = jid
|
|
||||||
self.resource = resource
|
|
||||||
self.show = show
|
self.show = show
|
||||||
self.status = status
|
self.status = status
|
||||||
self.name = name
|
self.name = name
|
||||||
|
@ -637,7 +635,7 @@ class Contacts:
|
||||||
|
|
||||||
def create_gc_contact(self, room_jid, account, name='', show='', status='',
|
def create_gc_contact(self, room_jid, account, name='', show='', status='',
|
||||||
role='', affiliation='', jid='', resource=''):
|
role='', affiliation='', jid='', resource=''):
|
||||||
return GC_Contact(room_jid, name, show, status, role, affiliation, jid,
|
return GC_Contact(room_jid, account, name, show, status, role, affiliation, jid,
|
||||||
resource)
|
resource)
|
||||||
|
|
||||||
def add_gc_contact(self, account, gc_contact):
|
def add_gc_contact(self, account, gc_contact):
|
||||||
|
|
|
@ -203,7 +203,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
||||||
if not contact:
|
if not contact:
|
||||||
# contact is not in the roster, create a fake one to display
|
# contact is not in the roster, create a fake one to display
|
||||||
# notification
|
# notification
|
||||||
contact = contacts.Contact(jid=jid, resource=resource)
|
contact = gajim.contacts.create_contact(jid=jid, account=self.conn.name, resource=resource)
|
||||||
|
|
||||||
advanced_notif_num = notify.get_advanced_notification('message_received',
|
advanced_notif_num = notify.get_advanced_notification('message_received',
|
||||||
self.conn.name, contact)
|
self.conn.name, contact)
|
||||||
|
|
Loading…
Reference in New Issue