famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
62 stars 31 forks source link

fix: Make room.setPower more type safe and avoid change powerlevel in RAM before sending request to server #1769

Closed krille-chan closed 6 months ago

krille-chan commented 6 months ago

This fixes the bug that the actual dart Map in the state has been manipulated because we have not worked with a copy of the map. Also this crashes if the powerlevelmap would had a wrong type in users.