Also render bottom panel when own occupant is added

So that we can remove the textarea if we're a visitor in a moderated room.
This commit is contained in:
JC Brand 2019-07-12 13:50:39 +02:00
parent 38d1e4e3d2
commit 2fca442f57

View File

@ -1273,6 +1273,7 @@ converse.plugins.add('converse-muc-views', {
onOccupantAdded (occupant) { onOccupantAdded (occupant) {
if (occupant.get('jid') === _converse.bare_jid) { if (occupant.get('jid') === _converse.bare_jid) {
this.renderHeading(); this.renderHeading();
this.renderBottomPanel();
} }
if (occupant.get('show') === 'online') { if (occupant.get('show') === 'online') {
this.showJoinNotification(occupant); this.showJoinNotification(occupant);