2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Display saved messages senders correctly.

This commit is contained in:
John Preston
2017-12-05 20:38:13 +04:00
parent 85d8273009
commit 8b3d203861
3 changed files with 23 additions and 10 deletions

View File

@@ -501,7 +501,9 @@ void RowPainter::paint(
auto cloudDraft = nullptr;
auto from = [&] {
if (auto searchPeer = row->searchInPeer()) {
if (!searchPeer->isChannel() || searchPeer->isMegagroup()) {
if (searchPeer->isSelf()) {
return item->senderOriginal();
} else if (!searchPeer->isChannel() || searchPeer->isMegagroup()) {
return item->from();
}
}