mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-07 11:08:36 +00:00
Generate a hashcode to detect when the number of unread messages has changed
This commit is contained in:
parent
c9c2a65a0a
commit
2bbccf728f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user