Several small bugfixes: Add missing accout parameter to constructors.

This commit is contained in:
Stephan Erb 2009-11-05 16:53:30 +01:00
parent 89b1c6a7df
commit 8a127b4e4d
2 changed files with 2 additions and 4 deletions

View File

@ -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):

View File

@ -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)