From 00bf74cef5cdad9757ff982a733c59c54c194e0a Mon Sep 17 00:00:00 2001 From: Hampus Date: Thu, 24 Sep 2026 23:38:04 +0200 Subject: [PATCH] fix(app): handle swapped overwrites when comparing channels (#2949) --- fluxer_app/src/features/channel/models/Channel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluxer_app/src/features/channel/models/Channel.ts b/fluxer_app/src/features/channel/models/Channel.ts index 70c7283cd..7ef14b7a8 100644 --- a/fluxer_app/src/features/channel/models/Channel.ts +++ b/fluxer_app/src/features/channel/models/Channel.ts @@ -303,7 +303,8 @@ export class Channel { const otherOverwrites = Object.keys(other.permissionOverwrites); if (thisOverwrites.length !== otherOverwrites.length) return false; for (const key of thisOverwrites) { - if (!this.permissionOverwrites[key].equals(other.permissionOverwrites[key])) { + const otherOverwrite = other.permissionOverwrites[key]; + if (otherOverwrite == null || !this.permissionOverwrites[key].equals(otherOverwrite)) { return false; } }