Mercurial > libervia-web
comparison src/browser/sat_browser/otrjs_wrapper.py @ 532:1fa173107fde
browser_side (wrapper otr.js): fixes the method to finish the conversation
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 05 Sep 2014 12:26:33 +0200 |
parents | 1735aaeac652 |
children | cd492c18b366 |
comparison
equal
deleted
inserted
replaced
531:793f12d1f970 | 532:1fa173107fde |
---|---|
130 def disconnect(self): | 130 def disconnect(self): |
131 self.otr.endOtr() | 131 self.otr.endOtr() |
132 | 132 |
133 def finish(self): | 133 def finish(self): |
134 """Finish the session - avoid to send any message and the user has to manually disconnect""" | 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') | 135 # it means TLV of type 1 (two first bytes), message length 0 (2 last bytes) |
136 self.otr.handleTLVs('\x00\x01\x00\x00') | |
136 | 137 |
137 def receiveMessage(self, msg): | 138 def receiveMessage(self, msg): |
138 """Received a message, ask otr.js to (try to) decrypt it""" | 139 """Received a message, ask otr.js to (try to) decrypt it""" |
139 self.otr.receiveMsg(msg) | 140 self.otr.receiveMsg(msg) |
140 | 141 |