From 94ad405deed5226985d33ca60b418c41ec7f481f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 8 Dec 2017 00:39:43 +0100 Subject: [PATCH] fix: view.websocket (fixed update) --- view/websocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }