Set right timestamp for fallback notifications (#864)

This commit is contained in:
Jorge Martin Espinosa 2023-07-13 08:02:38 +02:00 committed by GitHub
parent 4d898cc978
commit 494229d153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,6 +232,7 @@ class NotificationFactory @Inject constructor(
.setSmallIcon(smallIcon)
.setColor(accentColor)
.setAutoCancel(true)
.setWhen(fallbackNotifiableEvent.timestamp)
// Ideally we'd use `createOpenRoomPendingIntent` here, but the broken notification might apply to an invite
// and the user won't have access to the room yet, resulting in an error screen.
.setContentIntent(pendingIntentFactory.createOpenSessionPendingIntent(fallbackNotifiableEvent.sessionId))