notifications properly working

This commit is contained in:
end-4
2025-04-19 20:07:44 +02:00
parent 63e29d18fb
commit 3b2628fbd7
6 changed files with 288 additions and 119 deletions
@@ -42,8 +42,8 @@ function guessMessageType(summary) {
// return messageTime.format(userOptions.time.dateFormat);
// }
const getFriendlyNotifTimeString = (timeObject) => {
const messageTime = timeObject;
const getFriendlyNotifTimeString = (timestamp) => {
const messageTime = new Date(timestamp);
const now = new Date();
const oneMinuteAgo = new Date(now.getTime() - 60000);