Bugfix. Handle empty content
This commit is contained in:
parent
56cbb69ad1
commit
c7e57936fb
@ -1776,8 +1776,8 @@ converse.plugins.add('converse-muc-views', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
removeEmptyHistoryFeedback () {
|
removeEmptyHistoryFeedback () {
|
||||||
if (_converse.muc_show_logs_before_join &&
|
const el = this.content.firstElementChild;
|
||||||
this.content.firstElementChild.matches('.empty-history-feedback')) {
|
if (_converse.muc_show_logs_before_join && el && el.matches('.empty-history-feedback')) {
|
||||||
this.content.removeChild(this.content.firstElementChild);
|
this.content.removeChild(this.content.firstElementChild);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user