feat: prevent duplicate initialization of Paarrot API and update server port
This commit is contained in:
@@ -37,7 +37,6 @@ import { getCurrentSession } from '../../state/sessions';
|
||||
import { CallProviderWrapper } from '../../features/call/CallProviderWrapper';
|
||||
import { isTauriMobile, startBackgroundSync, stopBackgroundSync } from '../../utils/tauri';
|
||||
import { TitleBar } from '../../components/title-bar';
|
||||
import { initPaarrotAPI } from '../../paarrot-api';
|
||||
import { AccountSwitcher } from '../../components/account-switcher';
|
||||
import { getLoginPath, withSearchParam } from '../pathUtils';
|
||||
|
||||
@@ -178,13 +177,6 @@ export function ClientRoot({ children }: ClientRootProps) {
|
||||
useVisibilitySync(mx);
|
||||
useBackgroundSync(mx);
|
||||
|
||||
// Initialize Paarrot API when client is ready
|
||||
useEffect(() => {
|
||||
if (mx) {
|
||||
initPaarrotAPI(mx);
|
||||
}
|
||||
}, [mx]);
|
||||
|
||||
useEffect(() => {
|
||||
if (loadState.status === AsyncStatus.Idle) {
|
||||
loadMatrix();
|
||||
|
||||
Reference in New Issue
Block a user