Skip to content

Commit

Permalink
allowing unified push payloads to have default nulls
Browse files Browse the repository at this point in the history
- fixes crash on non message unified push events
  • Loading branch information
ouchadam committed Sep 13, 2022
1 parent 5a300b1 commit 2bf0ef2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class UnifiedPushMessageReceiver : MessagingReceiver() {

@Serializable
data class Notification(
@SerialName("event_id") val eventId: String?,
@SerialName("room_id") val roomId: String?,
@SerialName("event_id") val eventId: String? = null,
@SerialName("room_id") val roomId: String? = null,
)
}
}

0 comments on commit 2bf0ef2

Please sign in to comment.