comparison cagou/plugins/plugin_wid_chat.py @ 340:9688e5e9881e

chat: removed some old code
author Goffi <goffi@goffi.org>
date Mon, 30 Dec 2019 21:03:32 +0100
parents 63cdabdd032e
children 19422bbd9c8e
comparison
equal deleted inserted replaced
339:63cdabdd032e 340:9688e5e9881e
372 str(self.chat.target), 372 str(self.chat.target),
373 plugin['namespace'], 373 plugin['namespace'],
374 self.chat.profile, 374 self.chat.profile,
375 callback=self.encryptionTrustUIGetCb, 375 callback=self.encryptionTrustUIGetCb,
376 errback=self.encryptionTrustUIGetEb) 376 errback=self.encryptionTrustUIGetEb)
377
378 def otr_start(self):
379 self.dismiss()
380 G.host.launchMenu(
381 C.MENU_SINGLE,
382 ("otr", "start/refresh"),
383 {'jid': str(self.chat.target)},
384 None,
385 C.NO_SECURITY_LIMIT,
386 self.chat.profile
387 )
388
389 def otr_end(self):
390 self.dismiss()
391 G.host.launchMenu(
392 C.MENU_SINGLE,
393 ("otr", "end session"),
394 {'jid': str(self.chat.target)},
395 None,
396 C.NO_SECURITY_LIMIT,
397 self.chat.profile
398 )
399
400 def otr_authenticate(self):
401 self.dismiss()
402 G.host.launchMenu(
403 C.MENU_SINGLE,
404 ("otr", "authenticate"),
405 {'jid': str(self.chat.target)},
406 None,
407 C.NO_SECURITY_LIMIT,
408 self.chat.profile
409 )
410 377
411 378
412 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget): 379 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget):
413 message_input = properties.ObjectProperty() 380 message_input = properties.ObjectProperty()
414 messages_widget = properties.ObjectProperty() 381 messages_widget = properties.ObjectProperty()