fix: federation self-connection causing sidebar space duplication

Guard autoConnectAll against connecting to window.location.origin,
send perspective-correct replicatedInstances lists so remotes never
store self-references, and deduplicate unaccounted spaces in sidebar.
This commit is contained in:
Jannis Braun
2026-03-12 16:29:11 +01:00
parent 7a7e0784d8
commit 06b56472f9
2 changed files with 27 additions and 11 deletions
@@ -899,6 +899,7 @@ export function SpaceSidebar() {
for (const space of spaces) {
if (!accountedSpaceIds.has(space.id)) {
result.push({ type: 'space', space });
accountedSpaceIds.add(space.id);
}
}