mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Add message processing performance test.
This commit is contained in:
committed by
Greyson Parrelli
parent
f719dcca6d
commit
c0aff46e31
@@ -2209,7 +2209,8 @@ public class SignalServiceMessageSender {
|
||||
return new OutgoingPushMessageList(recipient.getIdentifier(), timestamp, messages, online, urgent);
|
||||
}
|
||||
|
||||
private OutgoingPushMessage getEncryptedMessage(SignalServiceAddress recipient,
|
||||
// Visible for testing only
|
||||
public OutgoingPushMessage getEncryptedMessage(SignalServiceAddress recipient,
|
||||
Optional<UnidentifiedAccess> unidentifiedAccess,
|
||||
int deviceId,
|
||||
EnvelopeContent plaintext,
|
||||
@@ -2248,7 +2249,6 @@ public class SignalServiceMessageSender {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private List<PreKeyBundle> getPreKeys(SignalServiceAddress recipient, Optional<UnidentifiedAccess> unidentifiedAccess, int deviceId, boolean story) throws IOException {
|
||||
try {
|
||||
return socket.getPreKeys(recipient, unidentifiedAccess, deviceId);
|
||||
|
||||
@@ -12,13 +12,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
public class OutgoingPushMessage {
|
||||
|
||||
@JsonProperty
|
||||
private int type;
|
||||
public int type;
|
||||
@JsonProperty
|
||||
private int destinationDeviceId;
|
||||
public int destinationDeviceId;
|
||||
@JsonProperty
|
||||
private int destinationRegistrationId;
|
||||
public int destinationRegistrationId;
|
||||
@JsonProperty
|
||||
private String content;
|
||||
public String content;
|
||||
|
||||
public OutgoingPushMessage() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user