Mercurial > libervia-web
comparison src/browser/sat_browser/otrjs_wrapper.py @ 530:1735aaeac652
plugin OTR: forces FINISHED state if we are in ENCRYPTED state on contact disconnection
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 05 Sep 2014 11:53:55 +0200 |
parents | 5add182e7dd5 |
children | 1fa173107fde |
comparison
equal
deleted
inserted
replaced
529:9bfd71e2b35c | 530:1735aaeac652 |
---|---|
128 return None | 128 return None |
129 | 129 |
130 def disconnect(self): | 130 def disconnect(self): |
131 self.otr.endOtr() | 131 self.otr.endOtr() |
132 | 132 |
133 def finish(self): | |
134 """Finish the session - avoid to send any message and the user has to manually disconnect""" | |
135 self.otr.handleTLVs('\x00\x00\x01\x00\x00') | |
136 | |
133 def receiveMessage(self, msg): | 137 def receiveMessage(self, msg): |
134 """Received a message, ask otr.js to (try to) decrypt it""" | 138 """Received a message, ask otr.js to (try to) decrypt it""" |
135 self.otr.receiveMsg(msg) | 139 self.otr.receiveMsg(msg) |
136 | 140 |
137 def sendMessage(self, msg): | 141 def sendMessage(self, msg): |