From 2e9021c2e73786e9045c0634c43efa86f18ac8de Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Sun, 4 Sep 2016 23:34:24 +0100 Subject: OlmSession.has_received_message I find myself wanting to know if an OlmSession is in the pre-key state or not, to help debugging at the application level. --- include/olm/olm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/olm/olm.h b/include/olm/olm.h index 0886fa9..81b6602 100644 --- a/include/olm/olm.h +++ b/include/olm/olm.h @@ -300,6 +300,10 @@ size_t olm_session_id( void * id, size_t id_length ); +int olm_session_has_received_message( + OlmSession *session +); + /** Checks if the PRE_KEY message is for this in-bound session. This can happen * if multiple messages are sent to this account before this account sends a * message in reply. Returns olm_error() on failure. If the base64 -- cgit v1.2.3