From 895a7b2a9930071e59b629d02b645e277e0892a9 Mon Sep 17 00:00:00 2001 From: ice-damocles <190337044+ice-damocles@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:53:47 +0200 Subject: [PATCH] fix: Allow null for sig from json payload (#4) --- lib/src/model/event_message.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/model/event_message.dart b/lib/src/model/event_message.dart index 48193bf..3bd74d9 100644 --- a/lib/src/model/event_message.dart +++ b/lib/src/model/event_message.dart @@ -151,7 +151,7 @@ class EventMessage extends RelayMessage { .map((e) => (e as List).map((e) => e as String).toList()) .toList(), content: payloadJson['content'] as String, - sig: payloadJson['sig'] as String, + sig: payloadJson['sig'] as String?, subscriptionId: subscriptionId, ); }