mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 08:51:32 +02:00
keep previous >= pl limit
This commit is contained in:
parent
63504fcc17
commit
fe71c17bb7
@ -166,7 +166,7 @@ export class RoomPermalinkCreator {
|
|||||||
}, [null, 0]);
|
}, [null, 0]);
|
||||||
const [userId, powerLevel] = maxEntry;
|
const [userId, powerLevel] = maxEntry;
|
||||||
// object wasn't empty, and max entry wasn't a demotion from the default
|
// object wasn't empty, and max entry wasn't a demotion from the default
|
||||||
if (userId !== null && powerLevel > (content.users_default || 0)) {
|
if (userId !== null && powerLevel >= 50) {
|
||||||
this._highestPlUserId = userId;
|
this._highestPlUserId = userId;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user