fixing handling of unkown msgids

master
cheetah 3 years ago
parent a853f223b5
commit 6b84679d35

@ -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…
Cancel
Save