mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(app): handle swapped overwrites when comparing channels (#2949)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user