Comparison

plugins/mod_smacks.lua @ 12745:2cbf0e9314ff

mod_smacks: Change boolean attribute from '1' to 'true' for compatibility Conversations 2.10.10 and earlier expect this to be literally 'true' and don't recognise '1'. This leads to it not attempting resumption with Prosody at all since this change was introduced in 36ba170c4fd0. Thanks to Zash for noticing, debugging and diagnosing this issue. This issue is fixed in Conversations commit 052c58f3 (unreleased at the time of writing).
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Oct 2022 11:35:56 +0100
parent 12739:0dc80024fdd2
child 12800:06ba2f8cee47
comparison
equal deleted inserted replaced
12744:e894677359e5 12745:2cbf0e9314ff
352 end 352 end
353 353
354 (session.sends2s or session.send)(st.stanza("enabled", { 354 (session.sends2s or session.send)(st.stanza("enabled", {
355 xmlns = xmlns_sm; 355 xmlns = xmlns_sm;
356 id = enabled.id; 356 id = enabled.id;
357 resume = enabled.id and "1" or nil; 357 resume = enabled.id and "true" or nil; -- COMPAT w/ Conversations 2.10.10 requires 'true' not '1'
358 max = enabled.resume_max; 358 max = enabled.resume_max;
359 })); 359 }));
360 360
361 session.smacks = xmlns_sm; 361 session.smacks = xmlns_sm;
362 enabled.finish(); 362 enabled.finish();