Skip to content

Commit

Permalink
Revert timestamp parsing
Browse files Browse the repository at this point in the history
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
  • Loading branch information
mueller-ma committed Jul 10, 2024
1 parent da1e5e3 commit a9a0e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class FcmMessageListenerService : FirebaseMessagingService() {
// Older versions of openhab-cloud didn't send the notification generation
// timestamp, so use the (undocumented) google.sent_time as a time reference
// in that case. If that also isn't present, don't show time at all.
createdTimestamp = data["timestamp"]?.toLongOrNull() ?: 0,
createdTimestamp = data["timestamp"]?.toLong() ?: message.sentTime,
icon = data["icon"].toOH2IconResource(),
tag = data["tag"],
actions = actions,
Expand Down

0 comments on commit a9a0e61

Please sign in to comment.