Add logs of PN server notify fails

pull/1869/head
audric 4 years ago
parent 6a11a4c879
commit 68330b42bf

@ -94,7 +94,10 @@ export class MessageSentHandler {
window?.log?.warn('Should send PN notify but no wrapped envelope set.');
} else {
// we do not really care about the retsult.
await PnServer.notifyPnServer(wrappedEnvelope, sentMessage.device);
const pnNotifyRet = await PnServer.notifyPnServer(wrappedEnvelope, sentMessage.device);
if (!pnNotifyRet) {
window?.log?.warn('Push notification server request returned false');
}
}
}

Loading…
Cancel
Save