mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Replace App::self() with Auth().user().
Always have self Auth().user() when AuthSession exists.
This commit is contained in:
@@ -442,7 +442,7 @@ void MediaView::updateActions() {
|
||||
auto canDelete = [&] {
|
||||
if (_canDeleteItem) {
|
||||
return true;
|
||||
} else if (!_msgid && _photo && App::self() && _user == App::self()) {
|
||||
} else if (!_msgid && _photo && _user && _user == Auth().user()) {
|
||||
return _userPhotosData && _fullIndex && _fullCount;
|
||||
} else if (_photo && _photo->peer && _photo->peer->userpicPhotoId() == _photo->id) {
|
||||
if (auto chat = _photo->peer->asChat()) {
|
||||
|
Reference in New Issue
Block a user