Fix possible crash in forward preview.

This commit is contained in:
John Preston 2024-08-01 12:55:34 +02:00
parent 7c1510b611
commit 6b96466c5e

View file

@ -370,7 +370,7 @@ void PreviewWrap::paintEvent(QPaintEvent *e) {
userpicTop,
width(),
st::msgPhotoSize);
} else if (const auto info = item->originalHiddenSenderInfo()) {
} else if (const auto info = item->displayHiddenSenderInfo()) {
if (info->customUserpic.empty()) {
info->emptyUserpic.paintCircle(
p,