2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add phrases to lang.string.

This commit is contained in:
John Preston
2022-02-27 16:32:36 +03:00
parent 147d2e1934
commit dde4868540
22 changed files with 135 additions and 62 deletions

View File

@@ -200,8 +200,10 @@ Key WrapWidget::key() const {
Dialogs::RowDescriptor WrapWidget::activeChat() const {
if (const auto peer = key().peer()) {
return Dialogs::RowDescriptor(peer->owner().history(peer), FullMsgId());
} else if (key().settingsSelf() || key().poll()) {
return Dialogs::RowDescriptor(
peer->owner().history(peer),
FullMsgId());
} else if (key().settingsSelf() || key().isDownloads() || key().poll()) {
return Dialogs::RowDescriptor();
}
Unexpected("Owner in WrapWidget::activeChat().");