mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Move messages data to AuthSession.
This commit is contained in:
@@ -230,7 +230,7 @@ bool Application::hideMediaView() {
|
||||
}
|
||||
|
||||
void Application::showPhoto(not_null<const PhotoOpenClickHandler*> link) {
|
||||
const auto item = App::histItemById(link->context());
|
||||
const auto item = Auth().data().message(link->context());
|
||||
const auto peer = link->peer();
|
||||
return (!item && peer)
|
||||
? showPhoto(link->photo(), peer)
|
||||
|
Reference in New Issue
Block a user