Commit c7e57936 authored by JC Brand's avatar JC Brand

Bugfix. Handle empty content

parent 56cbb69a
......@@ -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);
}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment