diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f91d7ea..109168bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.7.2] - 08nd Jan 2022 +- feat: Let sendDefaultMessage return false on encryption failure (Krille Fear) +- fix: Room Member updates should always be cached (Krille Fear) +- fix: Requested users are not stored (Christian Pauly) +- fix: Localize reactions (Krille Fear) +- refactor: Remove unnecessary type checks and imports (Krille Fear) + ## [0.7.1] - 08nd Dec 2021 - fix: fallback in body for replies to replies (Nicolas Werner) - fix: ignore 4xx errors when re-sending the to_device queue The to_device queue was introduced to ensure integrity if e.g. the server temporarily failed when attempting to send a to_device message. If, for whatever reason, the server responds with a 4xx error, though, then we want to ignore that to_device message from the queue and move on, as that means that something different was fundamentally wrong. This helps to fix the to_device queue clogging up, making clients incapable of sending to_device events anymore, should such clogging happen. (Sorunome) diff --git a/lib/src/client.dart b/lib/src/client.dart index 9503adc1..534875ae 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1709,7 +1709,9 @@ class Client extends MatrixApi { stateEvent.relationshipEventId == room.lastEvent?.relationshipEventId; final importantOrRoomLoaded = - !room.partial || importantStateEvents.contains(stateEvent.type); + eventUpdate.type == EventUpdateType.inviteState || + !room.partial || + importantStateEvents.contains(stateEvent.type); if ((noMessageOrNoEdit || editingLastEvent || consecutiveEdit) && importantOrRoomLoaded) { room.setState(stateEvent); diff --git a/pubspec.yaml b/pubspec.yaml index 5c5b91f6..e371f768 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.7.1 +version: 0.7.2 homepage: https://famedly.com environment: diff --git a/test/client_test.dart b/test/client_test.dart index f480b1e4..81162794 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -141,6 +141,11 @@ void main() { matrix.rooms[1].roomAccountData['m.receipt'] ?.content['@alice:example.com']['event_id'], '7365636s6r6432:example.com'); + + final inviteRoom = matrix.rooms + .singleWhere((room) => room.membership == Membership.invite); + expect(inviteRoom.name, 'My Room Name'); + expect(inviteRoom.states[EventTypes.RoomMember]?.length, 1); expect(matrix.rooms.length, 2); expect(matrix.rooms[1].canonicalAlias, "#famedlyContactDiscovery:${matrix.userID!.split(":")[1]}");