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
@@ -1,5 +1,9 @@
# Change Log

## 26.1.0

* Fixed: realtime policy-violation errors are now delivered to active subscription streams instead of thrown from the message handler

## 26.0.0

* Breaking: `Execution.functionId` replaced by `resourceId` and `resourceType`, now that executions cover both functions and sites
Expand Down
6 changes: 5 additions & 1 deletion lib/src/realtime_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@ mixin RealtimeMixin {

void handleError(RealtimeResponse response) {
if (response.data['code'] == status.policyViolation) {
throw AppwriteException(response.data["message"], response.data["code"]);
final error = AppwriteException(
response.data["message"], response.data["code"]);
for (var subscription in _subscriptions.values) {
subscription.controller.addError(error);
}
} else {
_retry();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appwrite
version: 26.0.0
version: 26.1.0
description: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-flutter
Expand Down
Loading