# HG changeset patch # User souliane # Date 1409912793 -7200 # Node ID 1fa173107fde4824ad12f55445ae532cb372dabc # Parent 793f12d1f9704ee8ae61e829b91facc0efe88d57 browser_side (wrapper otr.js): fixes the method to finish the conversation diff -r 793f12d1f970 -r 1fa173107fde src/browser/sat_browser/otrjs_wrapper.py --- a/src/browser/sat_browser/otrjs_wrapper.py Fri Sep 05 12:08:55 2014 +0200 +++ b/src/browser/sat_browser/otrjs_wrapper.py Fri Sep 05 12:26:33 2014 +0200 @@ -132,7 +132,8 @@ def finish(self): """Finish the session - avoid to send any message and the user has to manually disconnect""" - self.otr.handleTLVs('\x00\x00\x01\x00\x00') + # it means TLV of type 1 (two first bytes), message length 0 (2 last bytes) + self.otr.handleTLVs('\x00\x01\x00\x00') def receiveMessage(self, msg): """Received a message, ask otr.js to (try to) decrypt it"""