diff --git a/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp b/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp index 9341b7089a..4e170736bc 100644 --- a/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp @@ -361,7 +361,7 @@ bool ProcessCurrent( && peer->asUser()->hasPersonalPhoto()) ? tr::lng_profile_photo_by_you(tr::now) : ((state->current.index == (state->current.count - 1)) - && SyncUserFallbackPhotoViewer(peer->asUser())) + && SyncUserFallbackPhotoViewer(peer->asUser()) == state->photoId) ? tr::lng_profile_public_photo(tr::now) : QString(); state->waitingLoad = false; diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index f5cf304fd0..1ea8c3f560 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -6677,7 +6677,8 @@ void OverlayWidget::updateHeader() { } else { if (_user && (index == count - 1) - && SyncUserFallbackPhotoViewer(_user)) { + && _photo + && SyncUserFallbackPhotoViewer(_user) == _photo->id) { _headerText = tr::lng_mediaview_profile_public_photo(tr::now); } else if (_user && _user->hasPersonalPhoto()