From e701305d0559cd72ea29c41382db6fa1d988cd07 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 2 Dec 2017 18:07:31 +0100 Subject: [PATCH] Bugfix. Avatar wasn't being shown --- src/converse-chatview.js | 3 +-- src/templates/chatbox_head.html | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/converse-chatview.js b/src/converse-chatview.js index 3d34bb71b..c2ece792a 100644 --- a/src/converse-chatview.js +++ b/src/converse-chatview.js @@ -221,7 +221,7 @@ _converse.ChatBoxHeading = Backbone.View.extend({ initialize () { - this.model.on('change:image', this.setAvatar, this); + this.model.on('change:image', this.render, this); this.model.on('change:status', this.onStatusMessageChanged, this); this.model.on('change:fullname', this.render, this); }, @@ -287,7 +287,6 @@ _.extend(this.model.toJSON(), { label_personal_message: __('Personal message'), label_send: __('Send'), - show_avatar: true, show_send_button: _converse.show_send_button, show_textarea: true, show_toolbar: _converse.show_toolbar, diff --git a/src/templates/chatbox_head.html b/src/templates/chatbox_head.html index 8eb2da0ad..5f35668a1 100644 --- a/src/templates/chatbox_head.html +++ b/src/templates/chatbox_head.html @@ -1,11 +1,9 @@
- {[ if (o.show_avatar) { ]} User Avatar - {[ } ]}
{[ if (o.url) { ]}