forked from smartpager/msg-email
fixing handling of unkown msgids
This commit is contained in:
parent
a853f223b5
commit
6b84679d35
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -65,10 +65,10 @@ socket.on('msgmgr:event', async (eventType, eventData) => {
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case 'status': {
|
case 'status': {
|
||||||
const [msgId, uuid, status] = eventData
|
const [msgId, uuid, status] = eventData
|
||||||
ingressMap[ msgId ][2].push(`${ uuid } is ${ status }`)
|
if (!!ingressMap[msgId]) ingressMap[ msgId ][2].push(`${ uuid } is ${ status }`)
|
||||||
} break;
|
} break;
|
||||||
case 'read':
|
case 'read':
|
||||||
ingressMap[ eventData ][2].push('read')
|
if (!!ingressMap[ eventData ]) ingressMap[ eventData ][2].push('read')
|
||||||
break;
|
break;
|
||||||
case 'response': {
|
case 'response': {
|
||||||
const [msgId, response] = eventData
|
const [msgId, response] = eventData
|
||||||
|
|
Loading…
Add table
Reference in a new issue