diff --git a/src/converse-muc.js b/src/converse-muc.js index 844fc19ae..07134996b 100755 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -1827,7 +1827,7 @@ displayJoinNotification (stanza) { const nick = Strophe.getResourceFromJid(stanza.getAttribute('from')); const stat = stanza.querySelector('status'); - const last_el = this.content.querySelector(':last-child'); + const last_el = this.content.querySelector('.message:last-child'); if (_.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).leave === `"${nick}"`) { last_el.outerHTML = diff --git a/src/templates/info.html b/src/templates/info.html index 42f9cfd07..f074e198c 100644 --- a/src/templates/info.html +++ b/src/templates/info.html @@ -1 +1 @@ -