mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 20:08:01 +01:00
Gate based on destination rather than random.
This commit is contained in:
committed by
Jon Chambers
parent
affb219d72
commit
59eb6d10c1
@@ -37,4 +37,12 @@ public class AmbiguousIdentifier {
|
||||
public boolean hasNumber() {
|
||||
return number != null;
|
||||
}
|
||||
|
||||
public int sendingGateHash() {
|
||||
if (uuid != null) {
|
||||
return (int)(uuid.getLeastSignificantBits() & 0xff);
|
||||
} else {
|
||||
return number.hashCode() & 0xff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user