fix message reposting
parent
c047e0169a
commit
2404f8fbe7
|
@ -146,8 +146,8 @@ socket.on('speak', function(json) {
|
||||||
|
|
||||||
socket.on('catchup', function(json) {
|
socket.on('catchup', function(json) {
|
||||||
for (const message of json) {
|
for (const message of json) {
|
||||||
console.log(json['id'])
|
console.log(message['id'])
|
||||||
const existing = document.getElementById(json['id'])
|
const existing = document.getElementById(message['id'])
|
||||||
if (existing) break
|
if (existing) break
|
||||||
console.log(existing)
|
console.log(existing)
|
||||||
handle_message(message)
|
handle_message(message)
|
||||||
|
|
Loading…
Reference in New Issue