forked from Shinonome/dots-hyprland
notifications: timeout, prevent some warnings when dismissing notif
This commit is contained in:
@@ -60,6 +60,7 @@ function findSuitableMaterialSymbol(summary = "") {
|
||||
* @returns { string }
|
||||
*/
|
||||
const getFriendlyNotifTimeString = (timestamp) => {
|
||||
if (!timestamp) return '';
|
||||
const messageTime = new Date(timestamp);
|
||||
const now = new Date();
|
||||
const oneMinuteAgo = new Date(now.getTime() - 60000);
|
||||
|
||||
Reference in New Issue
Block a user