some coding standards
This commit is contained in:
parent
a6ff8bac5e
commit
cdffa94641
1 changed files with 4 additions and 4 deletions
|
@ -2619,7 +2619,7 @@ class Interface:
|
||||||
is_continued=is_continued)
|
is_continued=is_continued)
|
||||||
mw.new_tab(gc_control)
|
mw.new_tab(gc_control)
|
||||||
|
|
||||||
def new_private_chat(self, gc_contact, account, session = None):
|
def new_private_chat(self, gc_contact, account, session=None):
|
||||||
contact = gajim.contacts.contact_from_gc_contact(gc_contact)
|
contact = gajim.contacts.contact_from_gc_contact(gc_contact)
|
||||||
type_ = message_control.TYPE_PM
|
type_ = message_control.TYPE_PM
|
||||||
fjid = gc_contact.room_jid + '/' + gc_contact.name
|
fjid = gc_contact.room_jid + '/' + gc_contact.name
|
||||||
|
@ -2660,7 +2660,7 @@ class Interface:
|
||||||
|
|
||||||
return session.control
|
return session.control
|
||||||
|
|
||||||
def new_chat(self, contact, account, resource = None, session = None):
|
def new_chat(self, contact, account, resource=None, session=None):
|
||||||
# Get target window, create a control, and associate it with the window
|
# Get target window, create a control, and associate it with the window
|
||||||
type_ = message_control.TYPE_CHAT
|
type_ = message_control.TYPE_CHAT
|
||||||
|
|
||||||
|
@ -2725,8 +2725,8 @@ class Interface:
|
||||||
ctrl = win.get_control(fjid, account)
|
ctrl = win.get_control(fjid, account)
|
||||||
|
|
||||||
if not ctrl:
|
if not ctrl:
|
||||||
ctrl = self.new_chat(contact, account,
|
ctrl = self.new_chat(contact, account, resource=resource,
|
||||||
resource = resource, session = session)
|
session=session)
|
||||||
# last message is long time ago
|
# last message is long time ago
|
||||||
gajim.last_message_time[account][ctrl.get_full_jid()] = 0
|
gajim.last_message_time[account][ctrl.get_full_jid()] = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue