mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 14:26:47 +00:00
Remove unnecessary check for destination UUID
This commit is contained in:
1 parent
109a3bb2b9
commit
8dfffebaf1
1 file changed
+1
-4
+1
-4
@@ -88,10 +88,7 @@ public class MessagesDynamoDb extends AbstractDynamoDbStore {
|
||||
.put(KEY_TIMESTAMP, AttributeValues.fromLong(message.getTimestamp()))
|
||||
.put(KEY_TTL, AttributeValues.fromLong(getTtlForMessage(message)));
|
||||
|
||||
// TODO All messages should have a destination UUID by 2021-12-03, and this can be set unconditionally
|
||||
if (message.hasDestinationUuid()) {
|
||||
item.put(KEY_DESTINATION_UUID, AttributeValues.fromUUID(UUID.fromString(message.getDestinationUuid())));
|
||||
}
|
||||
item.put(KEY_DESTINATION_UUID, AttributeValues.fromUUID(UUID.fromString(message.getDestinationUuid())));
|
||||
|
||||
if (message.hasRelay() && message.getRelay().length() > 0) {
|
||||
item.put(KEY_RELAY, AttributeValues.fromString(message.getRelay()));
|
||||
|
||||
Reference in new issue
Block a user