From bca2e6449e17d168fe3eaa975047ba40161d370c Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 14 May 2018 20:04:03 +0200 Subject: [PATCH] Apply user information on messages --- assets/js/pages/conversations/conversation.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js index 4796e796..62025d13 100644 --- a/assets/js/pages/conversations/conversation.js +++ b/assets/js/pages/conversations/conversation.js @@ -268,7 +268,11 @@ ComunicWeb.pages.conversations.conversation = { innerHTML: info.message }); - console.log(info); + //Apply user information (if available) + if(this._conv_info.users["user-" + info.ID_user]){ + accountImage.src = this._conv_info.users["user-" + info.ID_user].accountImage; + nameContainer = userFullName(this._conv_info.users["user-" + info.ID_user]); + } },