Skip to content

Commit

Permalink
Merge pull request #9 from davewoloszyn/MDL-80832
Browse files Browse the repository at this point in the history
MDL-80832: Fix users param formatting from getPowerLevelState
  • Loading branch information
andrewnicols authored Feb 7, 2024
2 parents 5254b2c + 551292b commit 087f514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/src/Entity/Room.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ protected function getPowerLevelState(): array
});

// Build the power level state.
$memberInfo = $members->map(fn(RoomMember $member) => [
$memberInfo = array_merge(...$members->map(fn(RoomMember $member) => [
$member->getUser()->getUserid() => $member->getPowerLevel(),
])->toArray();
])->toArray());

return [
'type' => 'm.room.power_levels',
Expand Down

0 comments on commit 087f514

Please sign in to comment.