about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/User
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-02 22:36:15 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-02 22:36:15 +0100
commit779ced6da10e35df9273b95928ed182cddecee27 (patch)
tree90765a9e7bf6e2255503a0a4e0a4fb5d5c9fdec6 /MatrixRoomUtils.Web/Pages/User
parentUpdate upstreams (diff)
downloadMatrixUtils-779ced6da10e35df9273b95928ed182cddecee27.tar.xz
Reformat
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/User')
-rw-r--r--MatrixRoomUtils.Web/Pages/User/DMSpaceStages/DMSpaceStage1.razor2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Web/Pages/User/DMSpaceStages/DMSpaceStage1.razor b/MatrixRoomUtils.Web/Pages/User/DMSpaceStages/DMSpaceStage1.razor
index 3642da5..f953f76 100644
--- a/MatrixRoomUtils.Web/Pages/User/DMSpaceStages/DMSpaceStage1.razor
+++ b/MatrixRoomUtils.Web/Pages/User/DMSpaceStages/DMSpaceStage1.razor
@@ -97,7 +97,7 @@ else {
     public async Task<(string id, string name)?> GetFeasibleSpaces(GenericRoom room) {
         try {
             var pls = await room.GetPowerLevelsAsync();
-            if (!pls.UserHasPermission(DmSpace.Homeserver.WhoAmI.UserId, "m.space.child")) {
+            if (!pls.UserHasStatePermission(DmSpace.Homeserver.WhoAmI.UserId, "m.space.child")) {
                 Console.WriteLine($"No permission to send m.space.child in {room.RoomId}...");
                 return null;
             }