From 5ec55c0467b7a8ebfad590740377393bc2c6f9be Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jun 2016 20:56:05 +0100 Subject: [PATCH] Add client state indication to prosody --- src/freedombone | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 4c6d7689..b4218686 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6953,9 +6953,14 @@ function update_prosody_modules { # message archive management # https://modules.prosody.im/mod_mam.html - if [ -d cp $INSTALL_DIR/prosody-modules/mod_mam ]; then + if [ -d $INSTALL_DIR/prosody-modules/mod_mam ]; then cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules fi + + # Client State Indication + if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then + cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules + fi } function install_xmpp { @@ -7029,6 +7034,7 @@ function install_xmpp { echo ' "saslauth"; -- Enable mod_saslauth' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo ' "onions"; -- Enable chat via onion service' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo ' "mam"; -- Message archive management' >> /etc/prosody/conf.avail/xmpp.cfg.lua + echo ' "csi"; -- Client state indication' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua