mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Don't show "Report" for personal contact photos.
This commit is contained in:
parent
23387d6625
commit
2d9d373c7f
1 changed files with 6 additions and 1 deletions
|
@ -1043,6 +1043,11 @@ void OverlayWidget::fillContextMenuActions(const MenuCallback &addAction) {
|
||||||
if (userPhotosKey()) {
|
if (userPhotosKey()) {
|
||||||
if (_peer->isSelf() || _peer->isNotificationsUser()) {
|
if (_peer->isSelf() || _peer->isNotificationsUser()) {
|
||||||
return;
|
return;
|
||||||
|
} else if (const auto user = _peer->asUser()) {
|
||||||
|
if (user->hasPersonalPhoto()
|
||||||
|
&& user->userpicPhotoId() == _photo->id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if ((sharedMediaType().value_or(Type::File) == Type::ChatPhoto)
|
} else if ((sharedMediaType().value_or(Type::File) == Type::ChatPhoto)
|
||||||
|| (_peer->userpicPhotoId() == _photo->id)) {
|
|| (_peer->userpicPhotoId() == _photo->id)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue