From 64c1c5af2ea0fc1eb8be233012879bec510fe840 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sat, 4 Feb 2023 05:27:55 -0500 Subject: [PATCH] implement ChatData.equals() --- .../securesms/notifications/NotificationCenter.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 9f60729a6..fe7a23cf2 100644 --- a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -608,5 +608,14 @@ public class NotificationCenter { this.accountId = accountId; this.chatId = chatId; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + ChatData chatData = (ChatData) o; + return accountId == chatData.accountId && chatId == chatData.chatId; + } } }