mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-28 07:05:41 +01:00
Update when for notifications
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
9cb72de8e8
commit
c5df8250de
@ -288,7 +288,8 @@ public class NotificationWorker extends Worker {
|
|||||||
.setCategory(category)
|
.setCategory(category)
|
||||||
.setPriority(priority)
|
.setPriority(priority)
|
||||||
.setSubText(baseUrl)
|
.setSubText(baseUrl)
|
||||||
.setWhen(decryptedPushMessage.getTimestamp())
|
.setWhen(decryptedPushMessage.getTimestamp() != 0 ?
|
||||||
|
decryptedPushMessage.getTimestamp() : System.currentTimeMillis())
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setContentTitle(decryptedPushMessage.getSubject())
|
.setContentTitle(decryptedPushMessage.getSubject())
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
|
Loading…
Reference in New Issue
Block a user