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)
|
||||
|
||||
self.jid = jid
|
||||
self.resource = resource
|
||||
self.show = show
|
||||
self.status = status
|
||||
self.name = name
|
||||
|
@ -637,7 +635,7 @@ class Contacts:
|
|||
|
||||
def create_gc_contact(self, room_jid, account, name='', show='', status='',
|
||||
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)
|
||||
|
||||
def add_gc_contact(self, account, gc_contact):
|
||||
|
|
|
@ -203,7 +203,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
|||
if not contact:
|
||||
# contact is not in the roster, create a fake one to display
|
||||
# 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',
|
||||
self.conn.name, contact)
|
||||
|
|
Loading…
Reference in New Issue