From b1affc52672f7b9b61fb28a3e6791ccdd86a8b68 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Fri, 15 Jan 2021 20:03:23 +0100 Subject: [PATCH] fixes #51: Add new offline setting: redirect to chatroom This introduces a new configurable 'offline setting': redirect to a chat room, adding this option to the database and the admin console. The embedded converse client is modified to no longer hardcoded falling back to a chatroom, but to do this only when the offline settings instruct it to do so. This routine needs a lot more work (see #49). --- changelog.html | 1 + classes/ofmeet.js | 53 +++++++++++++++++-- src/database/fastpath_db2.sql | 1 + src/database/fastpath_hsqldb.sql | 1 + src/database/fastpath_mysql.sql | 1 + src/database/fastpath_oracle.sql | 1 + src/database/fastpath_postgresql.sql | 1 + src/database/fastpath_sqlserver.sql | 1 + src/database/upgrade/1/fastpath_db2.sql | 1 + src/database/upgrade/1/fastpath_hsqldb.sql | 1 + src/database/upgrade/1/fastpath_mysql.sql | 1 + src/database/upgrade/1/fastpath_oracle.sql | 1 + .../upgrade/1/fastpath_postgresql.sql | 1 + src/database/upgrade/1/fastpath_sqlserver.sql | 1 + .../settings/offline/OfflineSettings.java | 17 +++++- .../offline/OfflineSettingsManager.java | 30 +++++++---- .../offline/OfflineSettingsProvider.java | 3 ++ .../xmpp/workgroup/WorkgroupIQHandler.java | 3 +- src/web/workgroup-offline.jsp | 47 +++++++++++++--- 19 files changed, 143 insertions(+), 23 deletions(-) diff --git a/changelog.html b/changelog.html index 8315e9d79..2d69270c2 100644 --- a/changelog.html +++ b/changelog.html @@ -46,6 +46,7 @@

4.5.0 -- tbd