diff options
author | James Booth <boothj5@gmail.com> | 2015-03-19 22:57:51 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-19 22:57:51 +0000 |
commit | f1f047889eed360a0c91be4fcabd24199089c02a (patch) | |
tree | d1662f2e3f3c086eccf1f33611f32442d598f0a6 /src/xmpp | |
parent | 8e80a8ccf7578de71c02149e2bb99fd36b711915 (diff) | |
download | profani-tty-f1f047889eed360a0c91be4fcabd24199089c02a.tar.gz |
Added individual options to send and request delivery receipts
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 7986c668..e6927f76 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -110,7 +110,7 @@ message_send_chat(const char * const barejid, const char * const msg) if (state) { stanza_attach_state(ctx, message, state); } - if (prefs_get_boolean(PREF_RECEIPTS)) { + if (prefs_get_boolean(PREF_RECEIPTS_REQUEST)) { stanza_attach_receipt_request(ctx, message); } @@ -151,7 +151,7 @@ message_send_chat_encrypted(const char * const barejid, const char * const msg) stanza_attach_state(ctx, message, state); } stanza_attach_carbons_private(ctx, message); - if (prefs_get_boolean(PREF_RECEIPTS)) { + if (prefs_get_boolean(PREF_RECEIPTS_REQUEST)) { stanza_attach_receipt_request(ctx, message); } @@ -621,7 +621,7 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, } else { handle_incoming_message(jid->barejid, jid->resourcepart, message); } - if (id) { + if (id && prefs_get_boolean(PREF_RECEIPTS_SEND)) { xmpp_stanza_t *receipts = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_RECEIPTS); if (receipts) { char *receipts_name = xmpp_stanza_get_name(receipts); |