From ac74a08d53cafc7193d68fa673b0eb8112ea63a7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 15 Apr 2015 09:23:39 +0200 Subject: [PATCH] fixed crash in photo update from --- Telegram/SourceFiles/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index 073a8a2de..afe478b37 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -1783,7 +1783,7 @@ void HistoryPhoto::updateFrom(const MTPMessageMedia &media) { case mtpc_photoCachedSize: { const string &s(i->c_photoCachedSize().vtype.c_string().v); - loc = &i->c_photoSize().vlocation; + loc = &i->c_photoCachedSize().vlocation; if (s.size()) size = s[0]; } break; }