2
0
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:
John Preston
2019-04-25 16:45:15 +04:00
parent cb3e649e61
commit 08bddc5579
49 changed files with 684 additions and 590 deletions

View File

@@ -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)