Skip to content

Commit

Permalink
fix issue tgalal#1613
Browse files Browse the repository at this point in the history
  • Loading branch information
fnjeneza committed Oct 4, 2016
1 parent d69c1ff commit 429bc95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yowsup/layers/axolotl/layer_receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def handlePreKeyWhisperMessage(self, node):
preKeyWhisperMessage = PreKeyWhisperMessage(serialized=enc.getData())
sessionCipher = self.getSessionCipher(pkMessageProtocolEntity.getAuthor(False))
plaintext = sessionCipher.decryptPkmsg(preKeyWhisperMessage)
plaintext = plaintext.encode()
if enc.getVersion() == 2:
paddingByte = plaintext[-1] if type(plaintext[-1]) is int else ord(plaintext[-1])
padding = paddingByte & 0xFF
Expand Down

0 comments on commit 429bc95

Please sign in to comment.