From fe71c17bb75eb1d00b76ddd5ab381f0cdfc9835b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Feb 2019 11:53:07 +0100 Subject: [PATCH] keep previous >= pl limit --- src/matrix-to.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix-to.js b/src/matrix-to.js index c2966f97b0..35c1a9b634 100644 --- a/src/matrix-to.js +++ b/src/matrix-to.js @@ -166,7 +166,7 @@ export class RoomPermalinkCreator { }, [null, 0]); const [userId, powerLevel] = maxEntry; // 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; return; }