Follow normal workflow for OMEMO message reception

We try to decrypt all messages, if it's successful we use
sv_ev_incoming_message even for OMEMO messages. We pass an OMEMO
boolean to let UI be aware that message were encrypted.
This commit is contained in:
Paul Fariello
2019-03-01 05:10:23 +02:20
parent d871efdcf9
commit 810ea32223
6 changed files with 110 additions and 119 deletions

View File

@@ -8,3 +8,4 @@ void omemo_devicelist_request(const char * const jid);
void omemo_bundle_publish(void);
void omemo_bundle_request(const char * const jid, uint32_t device_id, ProfIqCallback func, ProfIqFreeCallback free_func, void *userdata);
int omemo_start_device_session_handle_bundle(xmpp_stanza_t *const stanza, void *const userdata);
char * omemo_receive_message(xmpp_stanza_t *const stanza);