- this.idDernierMessageAffiche = jQuery("#conversations #" + this.getId() + " div:first").attr("id")
- this.idDernierMessageAffiche = (this.idDernierMessageAffiche == undefined ? 0 : parseInt(this.idDernierMessageAffiche, 36))
+ if (this.messages.length > 0)
+ this.idDernierMessageAffiche = this.messages[this.messages.length-1].id