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