Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ts
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2022-01-04 15:24:54 +0300
committersualko <klaus@jsxc.org>2022-01-04 15:35:37 +0300
commitd6afb7e494e12c7779b7765c9514797ba0bec6c8 (patch)
treec7168a9a403c1a7ec5bbeaff03fbf316599229b0 /ts
parent0a6e5710fd222ed3fc1f39e285e0c68c8f45832d (diff)
feat: remove internal backend
we do not have the time anymore to maintaine it and fix severe bugs BREAKING CHANGE: the internal server is no longer available Signed-off-by: sualko <klaus@jsxc.org>
Diffstat (limited to 'ts')
-rw-r--r--ts/Bootstrap.ts21
-rw-r--r--ts/Settings.ts11
2 files changed, 1 insertions, 31 deletions
diff --git a/ts/Bootstrap.ts b/ts/Bootstrap.ts
index 9f60244..b215302 100644
--- a/ts/Bootstrap.ts
+++ b/ts/Bootstrap.ts
@@ -95,21 +95,6 @@ export default class Bootstrap {
if (OC.getCurrentUser().uid) {
this.jsxc.start();
}
-
- if (OJSXC_CONFIG.serverType === 'internal') {
- let storage = Storage.get();
- let jid = storage.getItem('internal:jid');
- let url = storage.getItem('internal:url');
-
- if (jid && url) {
- console.log('Start connection to internal XMPP server');
-
- this.jsxc.start(url, jid, 'sid', '1234');
-
- storage.removeItem('internal:jid');
- storage.removeItem('internal:url');
- }
- }
}
}
@@ -156,11 +141,7 @@ export default class Bootstrap {
jid += '/' + xmpp.resource;
}
- if (OJSXC_CONFIG.serverType === 'internal') {
- this.jsxc.start(xmpp.url, jid, 'sid', '1234');
- } else {
- this.jsxc.start(xmpp.url, jid, xmpp.password || '');
- }
+ this.jsxc.start(xmpp.url, jid, xmpp.password || '');
} catch (err) {
console.log('Error during log in', err);
diff --git a/ts/Settings.ts b/ts/Settings.ts
index 78bfd4f..c066268 100644
--- a/ts/Settings.ts
+++ b/ts/Settings.ts
@@ -101,17 +101,6 @@ export default class Settings {
storage.removeItem('loginForm:disable');
- if (OJSXC_CONFIG.serverType === 'internal') {
- storage.removeItem('serverIsOmniscient');
-
- if (!disabled) {
- let jid = xmpp.node + '@' + xmpp.domain + '/' + xmpp.resource;
-
- storage.setItem('internal:jid', jid);
- storage.setItem('internal:url', xmpp.url);
- }
- }
-
return {
disabled,
xmpp: {