MDL-78129 communication_matrix: Simplify power level setting
commit01a3461bbb4642037cc87a9601f1a43aa096c7a8
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 21 Sep 2023 13:20:26 +0000 (21 21:20 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 22 Sep 2023 02:44:04 +0000 (22 10:44 +0800)
tree71c08e9c6e345584aca8d63d01db894a42be5b24
parenteb991355fed4d4b5c8b5f6e3dfb16959e1617bce
MDL-78129 communication_matrix: Simplify power level setting

This change introduces a new API call to fetch the current power levels.

The result of this are used to fetch current admin users so as not to
remove them.

The update of existing users is simplified to only set users who do not
have the default level.
communication/provider/matrix/classes/communication_feature.php
communication/provider/matrix/classes/local/spec/features/matrix/get_room_powerlevels_from_sync_v3.php [new file with mode: 0644]
communication/provider/matrix/classes/local/spec/v1p1.php