feat: Implement compact JSON handling for map drawings and add chat notifications for sent/received drawings

This commit is contained in:
Janez T
2025-10-15 22:45:30 +02:00
parent 800786ec9c
commit 5a096c048e
4 changed files with 109 additions and 8 deletions

View File

@@ -25,8 +25,8 @@ class DrawingMessageParser {
// Parse JSON
final json = jsonDecode(jsonStr) as Map<String, dynamic>;
// Use existing fromJson method
return MapDrawing.fromJson(json);
// Use compact network format parser
return MapDrawing.fromNetworkJson(json);
} catch (e) {
return null;
}