diff --git a/vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt b/vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt index 1b0b0fc9b2..f400cded9d 100755 --- a/vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt +++ b/vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt @@ -51,19 +51,19 @@ import org.unifiedpush.android.connector.MessagingReceiver import org.unifiedpush.android.connector.MessagingReceiverHandler import timber.log.Timber -data class UnifiedPushMessage ( +data class UnifiedPushMessage( val notification: Notification ) @JsonClass(generateAdapter = true) -data class Notification ( +data class Notification( @Json(name = "event_id") val eventId: String = "", @Json(name = "room_id") val roomId: String = "", var unread: Int = 0, val counts: Counts = Counts() ) -data class Counts ( +data class Counts( val unread: Int = 0 )