diff --git a/view/websocket.js b/view/websocket.js index 24b2d53..fdcdb4f 100644 --- a/view/websocket.js +++ b/view/websocket.js @@ -55,7 +55,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){ // {1} Update messages in stack // for( var id in gstore.data.notif.emergency.data ) if( msg.upd[ gstore.data.notif.emergency.data[id].id ] != null ) - gstore.data.notif.emergency.data[id] = msg.upd; + gstore.data.notif.emergency.data[id].message = msg.upd[ gstore.data.notif.emergency.data[id].id ].message; } @@ -118,7 +118,7 @@ window.wsc_event = wsc.channel('event/31').listen(function(msg, err){ // {1} Update messages in stack // for( var id in gstore.data.notif.event.data ) if( msg.upd[ gstore.data.notif.event.data[id].id ] != null ) - gstore.data.notif.event.data[id] = msg.upd; + gstore.data.notif.event.data[id].message = msg.upd[ gstore.data.notif.event.data[id].id ].message; }