Merge pull request #2137 from famedly/td/schEventFix

Td/sch event fix
This commit is contained in:
td 2025-09-11 11:42:22 +02:00 committed by GitHub
commit 82d6318293
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## [2.0.1] 9th Sept 2025
- fix: scheduled event list init (td)
## [2.0.0] 9th Sept 2025 ## [2.0.0] 9th Sept 2025
There have been some breaking changes to the VoIP codebase. Specifically, you will have to pass your instance of the VoIP class to existing `getCallMemberships*` functions which are an extension on the Room class. There have been some breaking changes to the VoIP codebase. Specifically, you will have to pass your instance of the VoIP class to existing `getCallMemberships*` functions which are an extension on the Room class.

View File

@ -9,11 +9,11 @@ class ScheduledDelayedEventsResponse {
factory ScheduledDelayedEventsResponse.fromJson(Map<String, dynamic> json) { factory ScheduledDelayedEventsResponse.fromJson(Map<String, dynamic> json) {
final list = json['delayed_events'] ?? json['scheduled'] as List; final list = json['delayed_events'] ?? json['scheduled'] as List;
final List<ScheduledDelayedEvent> scheduledEvents = final scheduledEvents =
list.map((e) => ScheduledDelayedEvent.fromJson(e)).toList(); list.map((e) => ScheduledDelayedEvent.fromJson(e)).toList();
return ScheduledDelayedEventsResponse( return ScheduledDelayedEventsResponse(
scheduledEvents: scheduledEvents, scheduledEvents: List<ScheduledDelayedEvent>.from(scheduledEvents),
nextBatch: json['next_batch'] as String?, nextBatch: json['next_batch'] as String?,
); );
} }

View File

@ -1,6 +1,6 @@
name: matrix name: matrix
description: Matrix Dart SDK description: Matrix Dart SDK
version: 2.0.0 version: 2.0.1
homepage: https://famedly.com homepage: https://famedly.com
repository: https://github.com/famedly/matrix-dart-sdk.git repository: https://github.com/famedly/matrix-dart-sdk.git
issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues