Remove unnecessary check for destination UUID

This commit is contained in:
Chris Eager 2022-03-11 12:48:40 -08:00 committed by Chris Eager
parent 109a3bb2b9
commit 8dfffebaf1
1 changed files with 1 additions and 4 deletions

View File

@ -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()));