Update reactions UI.

This commit is contained in:
Greyson Parrelli
2020-01-31 15:10:59 -05:00
parent 1dd2a4e9c5
commit 73160d4d26
18 changed files with 339 additions and 277 deletions

View File

@@ -4,6 +4,8 @@ import androidx.annotation.NonNull;
import org.thoughtcrime.securesms.recipients.RecipientId;
import java.util.Objects;
public class ReactionRecord {
private final String emoji;
private final RecipientId author;
@@ -36,4 +38,20 @@ public class ReactionRecord {
public long getDateReceived() {
return dateReceived;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ReactionRecord that = (ReactionRecord) o;
return dateSent == that.dateSent &&
dateReceived == that.dateReceived &&
Objects.equals(emoji, that.emoji) &&
Objects.equals(author, that.author);
}
@Override
public int hashCode() {
return Objects.hash(emoji, author, dateSent, dateReceived);
}
}