Generate a hashcode to detect when the number of unread messages has changed

This commit is contained in:
Jeremy Lakeman 2016-07-26 09:41:17 +09:30
parent c9c2a65a0a
commit 2bbccf728f

View File

@ -43,4 +43,10 @@ public class MeshMSConversation {
this.readOffset = read_offset;
}
public int readHashCode() {
int result = me.hashCode();
result = 31 * result + them.hashCode();
result = 31 * result + (int) (lastMessageOffset ^ (lastMessageOffset >>> 32));
return result;
}
}