mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-23 00:08:06 +01:00
Remove the unused destination property from IncomingMessage
This commit is contained in:
committed by
Jon Chambers
parent
3d875f1ce5
commit
e28f1e8ceb
@@ -585,7 +585,7 @@ class MessageControllerTest {
|
||||
.request()
|
||||
.header(OptionalAccess.UNIDENTIFIED, Base64.getEncoder().encodeToString("1234".getBytes()))
|
||||
.put(Entity.entity(new IncomingMessageList(
|
||||
List.of(new IncomingMessage(1, null, 1L, 1, new String(contentBytes))), false,
|
||||
List.of(new IncomingMessage(1, 1L, 1, new String(contentBytes))), false,
|
||||
System.currentTimeMillis()),
|
||||
MediaType.APPLICATION_JSON_TYPE));
|
||||
|
||||
|
||||
@@ -155,8 +155,8 @@ public class ChangeNumberManagerTest {
|
||||
when(account.getDevices()).thenReturn(devices);
|
||||
|
||||
final List<IncomingMessage> messages = List.of(
|
||||
new IncomingMessage(1, null, 2, 1, "foo"),
|
||||
new IncomingMessage(1, null, 3, 1, "foo"));
|
||||
new IncomingMessage(1, 2, 1, "foo"),
|
||||
new IncomingMessage(1, 3, 1, "foo"));
|
||||
|
||||
final Map<Long, SignedPreKey> preKeys = Map.of(1L, new SignedPreKey(), 2L, new SignedPreKey(), 3L, new SignedPreKey());
|
||||
final Map<Long, Integer> registrationIds = Map.of(1L, 17, 2L, 47, 3L, 89);
|
||||
@@ -185,8 +185,8 @@ public class ChangeNumberManagerTest {
|
||||
when(account.getDevices()).thenReturn(devices);
|
||||
|
||||
final List<IncomingMessage> messages = List.of(
|
||||
new IncomingMessage(1, null, 2, 2, "foo"),
|
||||
new IncomingMessage(1, null, 3, 3, "foo"));
|
||||
new IncomingMessage(1, 2, 2, "foo"),
|
||||
new IncomingMessage(1, 3, 3, "foo"));
|
||||
|
||||
final Map<Long, Integer> registrationIds = Map.of(1L, 17, 2L, 47, 3L, 89);
|
||||
|
||||
|
||||
@@ -1551,8 +1551,8 @@ class AccountControllerTest {
|
||||
new StoredVerificationCode(code, System.currentTimeMillis(), "push", null)));
|
||||
|
||||
var deviceMessages = List.of(
|
||||
new IncomingMessage(1, null, 2, 2, "content2"),
|
||||
new IncomingMessage(1, null, 3, 3, "content3"));
|
||||
new IncomingMessage(1, 2, 2, "content2"),
|
||||
new IncomingMessage(1, 3, 3, "content3"));
|
||||
var deviceKeys = Map.of(1L, new SignedPreKey(), 2L, new SignedPreKey(), 3L, new SignedPreKey());
|
||||
|
||||
final Map<Long, Integer> registrationIds = Map.of(1L, 17, 2L, 47, 3L, 89);
|
||||
|
||||
Reference in New Issue
Block a user