Skip to content

Commit

Permalink
make action string nullable for presence event data
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Apr 15, 2024
1 parent 508ae72 commit 40b6bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubnub/lib/src/subscribe/envelope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class PresenceEvent {

PresenceEvent.fromEnvelope(this.envelope)
: action = PresenceActionExtension.fromString(
envelope.payload['action'] as String),
envelope.payload['action'] as String?),
uuid = envelope.payload['uuid'] != null
? UUID(envelope.payload['uuid'])
: null,
Expand Down

0 comments on commit 40b6bb6

Please sign in to comment.