Set right timestamp for fallback notifications (#864)
This commit is contained in:
parent
1619b85685
commit
7da59c61cc
1 changed files with 1 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ class NotificationFactory @Inject constructor(
|
||||||
.setSmallIcon(smallIcon)
|
.setSmallIcon(smallIcon)
|
||||||
.setColor(accentColor)
|
.setColor(accentColor)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
|
.setWhen(fallbackNotifiableEvent.timestamp)
|
||||||
// Ideally we'd use `createOpenRoomPendingIntent` here, but the broken notification might apply to an invite
|
// 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.
|
// and the user won't have access to the room yet, resulting in an error screen.
|
||||||
.setContentIntent(pendingIntentFactory.createOpenSessionPendingIntent(fallbackNotifiableEvent.sessionId))
|
.setContentIntent(pendingIntentFactory.createOpenSessionPendingIntent(fallbackNotifiableEvent.sessionId))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue