Notifications
Settings Notifications User Panel
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user