A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): copy hidden role ids so account switching saves (#3826)
Hampus8e062b1b1e63
diff --git a/fluxer_app/src/features/app/state/RuntimeConfigSnapshot.ts b/fluxer_app/src/features/app/state/RuntimeConfigSnapshot.tsindex 66ad52693..3bb0fdcfe 100644--- a/fluxer_app/src/features/app/state/RuntimeConfigSnapshot.ts+++ b/fluxer_app/src/features/app/state/RuntimeConfigSnapshot.ts@@ -626,7 +626,7 @@ function readHiddenRoleIds(value: unknown): ReadonlyArray<string> {if (!Array.isArray(value) || !value.every((id) => typeof id === 'string')) {invalid('hiddenRoleIds', 'must be an array of strings');}- return value;+ return [...value];}export function requireRuntimeConfigSnapshot(value: unknown): RuntimeConfigSnapshot {