Commit a246aef8 authored by JC Brand's avatar JC Brand

muc-views: clear empty history indicator when inserting a date

parent 115ee46e
......@@ -1700,19 +1700,25 @@ converse.plugins.add('converse-muc-views', {
}
},
insertMessage (view) {
removeEmptyHistoryFeedback () {
if (_converse.muc_show_logs_before_join &&
this.content.firstElementChild.matches('.empty-history-feedback')) {
this.content.removeChild(this.content.firstElementChild);
}
},
insertDayIndicator (next_msg_el) {
this.removeEmptyHistoryFeedback();
return _converse.ChatBoxView.prototype.insertDayIndicator.apply(this, arguments);
},
insertMessage (view) {
this.removeEmptyHistoryFeedback();
return _converse.ChatBoxView.prototype.insertMessage.call(this, view);
},
insertNotification (message) {
if (_converse.muc_show_logs_before_join &&
this.content.firstElementChild.matches('.empty-history-feedback')) {
this.content.removeChild(this.content.firstElementChild);
}
this.removeEmptyHistoryFeedback();
this.content.insertAdjacentHTML(
'beforeend',
tpl_info({
......
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