Sorry, last commit missed one hunk.
This commit is contained in:
parent
d2731268d7
commit
4958b28e1d
1 changed files with 5 additions and 10 deletions
13
src/gajim.py
13
src/gajim.py
|
@ -408,24 +408,19 @@ class OtrlMessageAppOps:
|
||||||
self.gajim_log("%s secured OTR connection started"%trust,
|
self.gajim_log("%s secured OTR connection started"%trust,
|
||||||
opdata['account'], context.username, no_print=True)
|
opdata['account'], context.username, no_print=True)
|
||||||
|
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(
|
ctrl = self.get_control(context.username, opdata['account'])
|
||||||
unicode(context.username), opdata['account'])
|
|
||||||
if ctrl:
|
if ctrl:
|
||||||
ctrl.update_otr(True)
|
ctrl.update_otr(True)
|
||||||
|
|
||||||
def gone_insecure(self, opdata="", context=None):
|
def gone_insecure(self, opdata="", context=None):
|
||||||
self.gajim_log("Private conversation with %s lost.", opdata['account'], context.username)
|
self.gajim_log("Private conversation with %s lost.", opdata['account'], context.username)
|
||||||
|
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(
|
ctrl = self.get_control(context.username, opdata['account'])
|
||||||
gajim.get_jid_without_resource(unicode(context.username)),
|
|
||||||
opdata['account'])
|
|
||||||
if ctrl:
|
if ctrl:
|
||||||
ctrl.update_otr()
|
ctrl.update_otr(True)
|
||||||
|
|
||||||
def still_secure(self, opdata=None, context=None, is_reply=0):
|
def still_secure(self, opdata=None, context=None, is_reply=0):
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(
|
ctrl = self.get_control(context.username, opdata['account'])
|
||||||
gajim.get_jid_without_resource(unicode(context.username)),
|
|
||||||
opdata['account'])
|
|
||||||
if ctrl:
|
if ctrl:
|
||||||
ctrl.update_otr(True)
|
ctrl.update_otr(True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue