Fix crash in Saved Messages
This commit is contained in:
parent
a0c12585a0
commit
3e91a1250d
1 changed files with 1 additions and 1 deletions
|
|
@ -865,7 +865,7 @@ void Message::paintFromName(
|
||||||
return context.selected()
|
return context.selected()
|
||||||
? &st::msgNameSponsoredIconSelected
|
? &st::msgNameSponsoredIconSelected
|
||||||
: &st::msgNameSponsoredIcon;
|
: &st::msgNameSponsoredIcon;
|
||||||
} else if (!item->isPost()) {
|
} else if (!item->isPost() && item->displayFrom()) {
|
||||||
const auto from = item->displayFrom();
|
const auto from = item->displayFrom();
|
||||||
if (from->isChat() || from->isMegagroup()) {
|
if (from->isChat() || from->isMegagroup()) {
|
||||||
return context.selected()
|
return context.selected()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue