diff --git a/CHANGELOG.md b/CHANGELOG.md index a28cb192..e5375fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.2.4 +- fix: Request aliases + ## 0.2.3 - feat: Add room and event types for spaces diff --git a/lib/fake_matrix_api.dart b/lib/fake_matrix_api.dart index a38b7a9b..7786b4ea 100644 --- a/lib/fake_matrix_api.dart +++ b/lib/fake_matrix_api.dart @@ -1150,7 +1150,7 @@ class FakeMatrixApi extends MockClient { 'prev_batch': 'p1902', 'total_room_count_estimate': 115 }, - '/client/r0/room/!localpart%3Aexample.com/aliases': (var req) => { + '/client/r0/rooms/!localpart%3Aexample.com/aliases': (var req) => { 'aliases': [ '#somewhere:example.com', '#another:example.com', diff --git a/lib/src/matrix_api.dart b/lib/src/matrix_api.dart index 47173c70..d32e3524 100644 --- a/lib/src/matrix_api.dart +++ b/lib/src/matrix_api.dart @@ -903,7 +903,7 @@ class MatrixApi { Future> requestRoomAliases(String roomId) async { final response = await request( RequestType.GET, - '/client/r0/room/${Uri.encodeComponent(roomId)}/aliases', + '/client/r0/rooms/${Uri.encodeComponent(roomId)}/aliases', ); return List.from(response['aliases']); } diff --git a/pubspec.yaml b/pubspec.yaml index e033342d..2eefdbd5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix_api_lite description: Dead simple data model for the matrix.org client-server API. -version: 0.2.3 +version: 0.2.4 homepage: https://famedly.com environment: