fix: keep source avatar when forwarded source is inaccessible

This commit is contained in:
Ireina
2026-04-09 16:13:43 +08:00
committed by AlexeyZavar
parent 2b98a1e0a1
commit c4b761cce0
+3 -1
View File
@@ -1150,7 +1150,9 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
channel->setName(qs(data.vtitle()), QString()); channel->setName(qs(data.vtitle()), QString());
channel->setAccessHash(data.vaccess_hash().v); channel->setAccessHash(data.vaccess_hash().v);
channel->setPhoto(MTP_chatPhotoEmpty()); if (channel->userpicPhotoUnknown()) {
channel->setPhoto(MTP_chatPhotoEmpty());
}
channel->date = 0; channel->date = 0;
channel->setMembersCount(0); channel->setMembersCount(0);