From 048bbc050bc76cc1a2eb923f19da6e0537783752 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 23 Jan 2026 10:56:00 -0600 Subject: [PATCH] fix: websocket backwards compatibility --- .../domain/services/sync_stream.service.dart | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mobile/lib/domain/services/sync_stream.service.dart b/mobile/lib/domain/services/sync_stream.service.dart index 06c70b86e6..1861c7da11 100644 --- a/mobile/lib/domain/services/sync_stream.service.dart +++ b/mobile/lib/domain/services/sync_stream.service.dart @@ -269,19 +269,24 @@ class SyncStreamService { final assetData = payload['asset']; final editData = payload['edit']; - if (assetData == null || editData == null) { + if (assetData == null) { continue; } final asset = SyncAssetV1.fromJson(assetData); - final edits = (editData as List) - .map((e) => SyncAssetEditV1.fromJson(e)) - .whereType() - .toList(); if (asset != null) { assets.add(asset); - assetEdits.addAll(edits); + + // Edits are only send on v2.6.0+ + if (editData != null) { + final edits = (editData as List) + .map((e) => SyncAssetEditV1.fromJson(e)) + .whereType() + .toList(); + + assetEdits.addAll(edits); + } } }