revert
parent
261a680e6c
commit
f1cb286daf
|
|
@ -91,14 +91,6 @@ E.on('notify',msg=>{
|
||||||
|
|
||||||
// could also use NRF.ancsGetAppInfo(msg.appId) here
|
// could also use NRF.ancsGetAppInfo(msg.appId) here
|
||||||
};
|
};
|
||||||
|
|
||||||
var aName = '';
|
|
||||||
NRF.ancsGetAppInfo( msg.appId ).then( ai => {
|
|
||||||
aName = ai.title;
|
|
||||||
}).catch(error => {
|
|
||||||
aName = appNames[msg.appId] || msg.appId;
|
|
||||||
});
|
|
||||||
|
|
||||||
var unicodeRemap = {
|
var unicodeRemap = {
|
||||||
'2019':"'"
|
'2019':"'"
|
||||||
};
|
};
|
||||||
|
|
@ -107,7 +99,7 @@ E.on('notify',msg=>{
|
||||||
require("messages").pushMessage({
|
require("messages").pushMessage({
|
||||||
t : msg.event,
|
t : msg.event,
|
||||||
id : msg.uid,
|
id : msg.uid,
|
||||||
src : aName,
|
src : appNames[msg.appId] || msg.appId,
|
||||||
title : msg.title&&E.decodeUTF8(msg.title, unicodeRemap, replacer),
|
title : msg.title&&E.decodeUTF8(msg.title, unicodeRemap, replacer),
|
||||||
subject : msg.subtitle&&E.decodeUTF8(msg.subtitle, unicodeRemap, replacer),
|
subject : msg.subtitle&&E.decodeUTF8(msg.subtitle, unicodeRemap, replacer),
|
||||||
body : msg.message&&E.decodeUTF8(msg.message, unicodeRemap, replacer)
|
body : msg.message&&E.decodeUTF8(msg.message, unicodeRemap, replacer)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue