Add a separate string for empty channel admin log.

This commit is contained in:
John Preston 2020-05-04 19:15:10 +04:00
parent 1f16ac59ca
commit 3260e9e752
1 changed files with 3 additions and 1 deletions

View File

@ -488,7 +488,9 @@ void InnerWidget::updateEmptyText() {
TextUtilities::Clean(_searchQuery))
: hasFilter
? tr::lng_admin_log_no_results_text(tr::now)
: tr::lng_admin_log_no_events_text(tr::now);
: _channel->isMegagroup()
? tr::lng_admin_log_no_events_text(tr::now)
: tr::lng_admin_log_no_events_text_channel(tr::now);
text.text.append(qstr("\n\n") + description);
_emptyText.setMarkedText(st::defaultTextStyle, text, options);
}