Skip to content

Commit 374c378

Browse files
committed
Fix build
Signed-off-by: alex <alex@werya.be>
1 parent a255e19 commit 374c378

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

app/src/main/java/com/nextcloud/talk/models/json/push/DecryptedPushMessage.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data class DecryptedPushMessage(
3232
var notificationId: Long?,
3333

3434
@JsonField(name = ["nids"])
35-
var notificationIds: LongArray?,
35+
var notificationIds: List<Long>?,
3636

3737
@JsonField(name = ["delete"])
3838
var delete: Boolean,
@@ -70,12 +70,7 @@ data class DecryptedPushMessage(
7070
if (subject != other.subject) return false
7171
if (id != other.id) return false
7272
if (notificationId != other.notificationId) return false
73-
if (notificationIds != null) {
74-
if (other.notificationIds == null) return false
75-
if (!notificationIds.contentEquals(other.notificationIds)) return false
76-
} else if (other.notificationIds != null) {
77-
return false
78-
}
73+
if (notificationIds != other.notificationIds) return false
7974
if (delete != other.delete) return false
8075
if (deleteAll != other.deleteAll) return false
8176
if (deleteMultiple != other.deleteMultiple) return false
@@ -93,7 +88,7 @@ data class DecryptedPushMessage(
9388
result = 31 * result + (subject?.hashCode() ?: 0)
9489
result = 31 * result + (id?.hashCode() ?: 0)
9590
result = 31 * result + (notificationId?.hashCode() ?: 0)
96-
result = 31 * result + (notificationIds?.contentHashCode() ?: 0)
91+
result = 31 * result + (notificationIds?.hashCode() ?: 0)
9792
result = 31 * result + (delete?.hashCode() ?: 0)
9893
result = 31 * result + (deleteAll?.hashCode() ?: 0)
9994
result = 31 * result + (deleteMultiple?.hashCode() ?: 0)

0 commit comments

Comments
 (0)