sesison-related TB fixes
This commit is contained in:
parent
2fd4ea7637
commit
17844361bb
|
@ -2134,11 +2134,7 @@ class Interface:
|
|||
if not contact:
|
||||
contact = highest_contact
|
||||
|
||||
if not session:
|
||||
session = gajim.connections[account].get_or_create_session(fjid, None)
|
||||
|
||||
self.new_chat(contact, account, resource = resource, session = session)
|
||||
ctrl = session.control
|
||||
ctrl = self.new_chat(contact, account, resource = resource, session = session)
|
||||
|
||||
gajim.last_message_time[account][jid] = 0 # long time ago
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ import cell_renderer_image
|
|||
|
||||
from common import gajim
|
||||
from common import helpers
|
||||
from common.stanza_session import StanzaSession
|
||||
|
||||
from chat_control import ChatControl
|
||||
from chat_control import ChatControlBase
|
||||
|
@ -223,9 +222,6 @@ class GroupchatControl(ChatControlBase):
|
|||
self.new_nick = ''
|
||||
self.name = self.room_jid.split('@')[0]
|
||||
|
||||
self.session = StanzaSession(gajim.connections[self.account],
|
||||
self.room_jid, 'gc', 'gc')
|
||||
|
||||
compact_view = gajim.config.get('compact_view')
|
||||
self.chat_buttons_set_visible(compact_view)
|
||||
self.widget_set_visible(self.xml.get_widget('banner_eventbox'),
|
||||
|
|
|
@ -96,7 +96,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
|||
msg_id = gajim.logger.write(log_type, full_jid_with_resource, msgtxt,
|
||||
tim=tim, subject=subject)
|
||||
except exceptions.PysqliteOperationalError, e:
|
||||
gajim.dispatch('ERROR', (_('Disk WriteError'), str(e)))
|
||||
self.conn.dispatch('ERROR', (_('Disk WriteError'), str(e)))
|
||||
|
||||
treat_as = gajim.config.get('treat_incoming_messages')
|
||||
if treat_as:
|
||||
|
@ -341,10 +341,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
|||
try:
|
||||
# bob responds
|
||||
if form.getType() == 'form' and 'security' in form.asDict():
|
||||
def continue_with_negotiation(*args):
|
||||
if len(args):
|
||||
self.dialog.destroy()
|
||||
|
||||
def continue_with_negotiation():
|
||||
# we don't support 3-message negotiation as the responder
|
||||
if 'dhkeys' in form.asDict():
|
||||
self.fail_bad_negotiation('3 message negotiation not supported when responding', ('dhkeys',))
|
||||
|
|
Loading…
Reference in New Issue