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) {
case 'status': {
const [msgId, uuid, status] = eventData
ingressMap[ msgId ][2].push(`${ uuid } is ${ status }`)
if (!!ingressMap[msgId]) ingressMap[ msgId ][2].push(`${ uuid } is ${ status }`)
} break;
case 'read':
ingressMap[ eventData ][2].push('read')
if (!!ingressMap[ eventData ]) ingressMap[ eventData ][2].push('read')
break;
case 'response': {
const [msgId, response] = eventData

Loading…
Cancel
Save