From 76f49cf17780c155dd02d39ebc40e1f62c0c2503 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 16 Jun 2015 15:15:40 +0100 Subject: Add a test for the axolotl API --- src/session.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/session.cpp') diff --git a/src/session.cpp b/src/session.cpp index 0582d56..6d93326 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -332,6 +332,8 @@ std::size_t axolotl::Session::decrypt( if (result == std::size_t(-1)) { last_error = ratchet.last_error; ratchet.last_error = axolotl::ErrorCode::SUCCESS; + } else { + received_message = true; } return result; } -- cgit v1.2.3