Notifications

Settings Notifications
User Panel
This commit is contained in:
Paolo Arena
2022-07-23 17:44:44 +02:00
parent 6ae82f14cc
commit e2006e683b
18 changed files with 328 additions and 69 deletions

View File

@@ -187,15 +187,12 @@ export default function () {
return ''
}
function getTypeNotif(msg: INotif) {
if (msg) {
if (msg.type) {
return msg.type
}
} else {
return ''
}
return ''
function getTypeDirNotif(msg: INotif) {
return (msg && msg.typedir) ? msg.typedir : 0
}
function getTypeIdNotif(msg: INotif) {
return (msg && msg.typeid) ? msg.typeid : 0
}
function getImgByNotif(notif: INotif) {
@@ -206,7 +203,6 @@ export default function () {
}
return {
getUsernameChatByMsg,
getMyUsername,
@@ -232,7 +228,8 @@ export default function () {
getNumNotifUnread,
getNumNotif,
getUsernameChatByNotif,
getTypeNotif,
getTypeDirNotif,
getTypeIdNotif,
getImgByNotif,
getNotifText,
}