Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ SPDX-FileCopyrightText: 2019-Present Famedly GmbH

SPDX-License-Identifier: AGPL-3.0-or-later
-->

## [12.0.1] 2nd September 2026
- fix: wrong if condition where rooms get removed from list even when includeLeave == true (Christian Kußowski)

## [12.0.0] 2nd September 2026
This version changes how left rooms are stored in the client and the archive is loaded.
When calling `loadArchive()` it no longer caches the archived rooms internally and
Expand Down
10 changes: 8 additions & 2 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3070,11 +3070,17 @@ class Client extends MatrixApi {
final position = membership == Membership.invite ? 0 : rooms.length;
// Add the new chat to the list
rooms.insert(position, room);
} else if (membership == .invite && found) {
rooms[roomIndex].membership = membership;
}
// If the membership is "leave" then remove the item and stop here
else if (membership == Membership.leave) {
if (syncFilter.room?.includeLeave == true && !found) {
rooms.add(room);
if (syncFilter.room?.includeLeave == true) {
if (!found) {
rooms.add(room);
} else {
rooms[roomIndex].membership = membership;
}
Comment thread
krille-chan marked this conversation as resolved.
} else if (found) {
rooms.removeAt(roomIndex);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: matrix
description: Matrix Dart SDK
version: 12.0.0
version: 12.0.1
homepage: https://famedly.com
repository: https://github.com/famedly/matrix-dart-sdk.git
issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues
Expand Down
Loading