Skip to content

Commit

Permalink
build: Update to v0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed May 8, 2024
1 parent e8c6eca commit 66cc796
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## [0.29.0] 08th May 2024
Refactoring release which fixes a flickering of sent file events in the timeline. The
State events in a room are no longer instances of `Event` but `StrippedStateEvent` by
default, which is a base class of `Event`. Usually in join rooms the state events are
actually `Event` and can be used as those after a type check if needed.

**Example:**
```dart
// Before:
final event = room.getState(EventTypes.RoomCreate);
// After:
final strippedStateEvent = room.getState(EventTypes.RoomCreate);
final event = strippedStateEvent is Event ? strippedStateEvent : null;
```

Also be aware that `Event.remove()` has been renamed to `Event.cancelSend()` to make
more clear that this is only to delete events from database and cache which have not
been synced yet. They no longer appear in the `Client.onEventUpdate` stream but on the new
`Client.onCancelSendEvent` stream.

- chore: more gh_release fixes (td)
- chore: reduce isValidMemEvent log level (td)
- ci: Add tests for database on web (Krille)
- refactor: delete not sent events without eventupdate stream workaround (Krille)
- refactor: Removes the behavior of deleting an event if the file is no longer cached (Krille)
- refactor: Use strippedstatevent as base for room state and user class (Krille)

## [0.28.1] 30th April 2024
- chore: expose fake matrix api (td)
- chore: update voip readme (td)
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: matrix
description: Matrix Dart SDK
version: 0.28.1
version: 0.29.0
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 Expand Up @@ -43,4 +43,3 @@ dev_dependencies:
lints: ^3.0.0
sqflite_common_ffi: 2.3.2+1 # v2.3.3 doesn't support dart v3.2.x
test: ^1.15.7

0 comments on commit 66cc796

Please sign in to comment.