X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat%2Fconversation.js;h=101f3e98ef10692b0916a3270d512e0111648e9e;hp=4d590b629aa6c35696079a4f825ed1c1e33a1188;hb=58e89680c244db82af1986f6bdab306d3437f0a2;hpb=20a70fc1818d9a4a369c53a7b4ba02519e7b98a6 diff --git a/js/pageMinichat/conversation.js b/js/pageMinichat/conversation.js index 4d590b6..101f3e9 100644 --- a/js/pageMinichat/conversation.js +++ b/js/pageMinichat/conversation.js @@ -286,12 +286,12 @@ euphorik.Conversation.prototype.flush = function() { // met à jour la classe des messages auquels repondent les nouveaux messages // dans le cas où ce message appartient au client courant (c'est un peu de la triche) TODO : ya mieux ? pourChaqueNouveauMessage(function(mess) { - if (mess.client === thisConversation.client) { + if (mess.auteurId === thisConversation.client.id) { objectEach(mess.repondA, function(messId) { var mess = thisConversation.messagesParId[messId]; if (mess) { mess.clientARepondu = true; - $("#conversations #" + mess.getId(thisConversation.getId())).addClass("repondu") + $("#conversations #" + mess.getId(thisConversation.getId())).addClass("repondu"); } }); }