Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Fix minor issues

Hakan Shehu183fe45111aa
diff --git a/desktop/src/components/accounts/login-form.tsx b/desktop/src/components/accounts/login-form.tsx
index 622b6e26..f012fc18 100644
--- a/desktop/src/components/accounts/login-form.tsx
+++ b/desktop/src/components/accounts/login-form.tsx
@@ -21,7 +21,7 @@ export const LoginForm = ({ servers }: LoginFormProps) => {
const appDatabase = useAppDatabase();
const [showRegister, setShowRegister] = React.useState(false);
const [server, setServer] = React.useState(servers[0]);
- const serverUrl = `https://${server.domain}`;
+ const serverUrl = `http://${server.domain}`;
const handleLogin = async (output: LoginOutput) => {
const insertAccountQuery = appDatabase.database
@@ -33,6 +33,7 @@ export const LoginForm = ({ servers }: LoginFormProps) => {
device_id: output.account.deviceId,
email: output.account.email,
token: output.account.token,
+ server: server.domain,
})
.compile();
diff --git a/desktop/src/electron/app-manager.ts b/desktop/src/electron/app-manager.ts
index d6337efa..6c7ab403 100644
--- a/desktop/src/electron/app-manager.ts
+++ b/desktop/src/electron/app-manager.ts
@@ -34,6 +34,7 @@ class AppManager {
private initPromise: Promise<void> | null = null;
constructor() {
+ this.servers = new Map<string, ServerManager>();
this.accounts = new Map<string, AccountManager>();
this.appPath = app.getPath('userData');
this.subscribers = new Map();