fix some missing nickname recognition post-bold2
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Tue, 21 Apr 2020 05:24:43 +0000 (07:24 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Tue, 21 Apr 2020 05:24:43 +0000 (07:24 +0200)
web/room.js

index 7085be4..0d47216 100644 (file)
@@ -294,8 +294,8 @@ function j_stand_cont(ddata)
     if (standup_data_old == null || data.length < 4) {
         content = '<table cols="'+(data.length < 4 ? data.length : 4)+'" class="table_standup">';
         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 += '<tr>';
@@ -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;