Commit fe4b6e80 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 0be949da
Pipeline #70393 passed with stages
in 8 minutes
......@@ -235,7 +235,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