From: Matteo Nastasi Date: Tue, 21 Apr 2020 05:24:43 +0000 (+0200) Subject: fix some missing nickname recognition X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=951760159aefcb1da424ec4139811d532c9e8e8b;p=brisk.git fix some missing nickname recognition --- diff --git a/web/room.js b/web/room.js index 7085be4..0d47216 100644 --- a/web/room.js +++ b/web/room.js @@ -294,8 +294,8 @@ function j_stand_cont(ddata) if (standup_data_old == null || data.length < 4) { content = ''; for (i = 0 ; i < data.length ; i++) { - if (ddata[i][1] == window.myname) { - ddata[i][0] |= 1; + if (data[i][1] == window.myname) { + data[i][0] |= 1; } if ((i % 4) == 0) content += ''; @@ -344,6 +344,9 @@ function j_stand_cont(ddata) if (standup_data_old[i][0] != data[e][0] || standup_data_old[i].length != data[e].length || (data[e].length == 3 && standup_data_old[i][2] != data[e][2])) { + if (data[e][1] == window.myname) { + data[e][0] |= 1; + } arr_mod[idx_mod_n] = data[e]; idx_mod[idx_mod_n++] = i; } @@ -359,6 +362,9 @@ function j_stand_cont(ddata) } } if (i == standup_data_old.length) { + if (data[e][1] == window.myname) { + data[e][0] |= 1; + } // console.log("ADD: "+data[e][1]); arr_add[idx_add_n] = data[e]; map_add[idx_add_n++] = e;