compate DeviceId against void string, not nil

This commit is contained in:
Florian du Garage Num 2025-09-19 16:02:58 +02:00
parent 30186a5653
commit 7920a98142

View File

@ -42,7 +42,7 @@ func messageToDomain(input Message) (MessageOut, error) {
},
CreatedAt: input.CreatedAt,
}
if len(input.States) > 0 || input.DeviceID != nil {
if len(input.States) > 0 || input.DeviceID != "" {
state := modelToMessageState(input)
out.State = &state
}