mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Enable distinct selecting of grouped media.
This commit is contained in:
@@ -94,6 +94,8 @@ CoverWidget::CoverWidget(QWidget *parent, UserData *self)
|
||||
}
|
||||
|
||||
PhotoData *CoverWidget::validatePhoto() const {
|
||||
Expects(_self != nullptr);
|
||||
|
||||
const auto photo = _self->userpicPhotoId()
|
||||
? App::photo(_self->userpicPhotoId())
|
||||
: nullptr;
|
||||
@@ -106,7 +108,7 @@ PhotoData *CoverWidget::validatePhoto() const {
|
||||
}
|
||||
|
||||
void CoverWidget::showPhoto() {
|
||||
if (auto photo = validatePhoto()) {
|
||||
if (const auto photo = validatePhoto()) {
|
||||
Messenger::Instance().showPhoto(photo, _self);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user