add JSDoc to notification_utils

This commit is contained in:
Greyfeather
2025-05-19 00:21:38 -06:00
parent 23b6199684
commit 08b9014ee2
@@ -1,5 +1,8 @@
/**
* @param { string } summary
* @returns { string }
*/
function findSuitableMaterialSymbol(summary = "") {
const defaultType = 'chat';
if(summary.length === 0) return defaultType;
@@ -49,6 +52,10 @@ function findSuitableMaterialSymbol(summary = "") {
// return messageTime.format(userOptions.time.dateFormat);
// }
/**
* @param { number | string | Date } timestamp
* @returns { string }
*/
const getFriendlyNotifTimeString = (timestamp) => {
const messageTime = new Date(timestamp);
const now = new Date();