diff --git a/frontend/static/js/views/Search.js b/frontend/static/js/views/Search.js index 7a706c7..924ad56 100644 --- a/frontend/static/js/views/Search.js +++ b/frontend/static/js/views/Search.js @@ -135,7 +135,10 @@ export default class extends AbstractView { // les messages, réecriture seulement du dernier let i = 0; client.channel.messages.forEach((message) => { - if (messages[i] == null || message != messages.children[i].innerText) { + if (messages.children[i] == null || message.content != messages.children[i].innerText) { + console.log(message.content); + if (messages.children[i] != null) + console.log(messages.children[i].innerText); let text = document.createElement("p"); text.appendChild(document.createTextNode(message.content)); if (message.author_id == client.me.user_id)