Commit 87940c65 authored by Morgan McMillian's avatar Morgan McMillian
Browse files

xep-0313: use default archive preference from server

The user message archiving default retrieved from the server should be
maintained and not overridden.
parent 0fbe8160
Pipeline #71370 passed with stages
in 8 minutes and 16 seconds
......@@ -236,7 +236,7 @@ cb_mam_query_prefs(JabberStream *js, const char *from,
if(type == JABBER_IQ_RESULT && prefs) {
const char *srv_def = xmlnode_get_attrib(prefs, "default");
const char *clt_def = chatty_mam_get_chat_prefs(pa, from, MAM_DEF_ROSTER);
const char *clt_def = chatty_mam_get_chat_prefs(pa, from, srv_def);
if(g_strcmp0(clt_def, srv_def)) {
JabberIq *iq = jabber_iq_new(js, JABBER_IQ_SET);
prefs = xmlnode_new_child(iq->node, "prefs");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment