|
@@ -6953,9 +6953,14 @@ function update_prosody_modules {
|
6953
|
6953
|
|
6954
|
6954
|
# message archive management
|
6955
|
6955
|
# https://modules.prosody.im/mod_mam.html
|
6956
|
|
- if [ -d cp $INSTALL_DIR/prosody-modules/mod_mam ]; then
|
|
6956
|
+ if [ -d $INSTALL_DIR/prosody-modules/mod_mam ]; then
|
6957
|
6957
|
cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules
|
6958
|
6958
|
fi
|
|
6959
|
+
|
|
6960
|
+ # Client State Indication
|
|
6961
|
+ if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then
|
|
6962
|
+ cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules
|
|
6963
|
+ fi
|
6959
|
6964
|
}
|
6960
|
6965
|
|
6961
|
6966
|
function install_xmpp {
|
|
@@ -7029,6 +7034,7 @@ function install_xmpp {
|
7029
|
7034
|
echo ' "saslauth"; -- Enable mod_saslauth' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
7030
|
7035
|
echo ' "onions"; -- Enable chat via onion service' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
7031
|
7036
|
echo ' "mam"; -- Message archive management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
|
7037
|
+ echo ' "csi"; -- Client state indication' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
7032
|
7038
|
echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
7033
|
7039
|
echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
7034
|
7040
|
echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|