From 51f9e8f681901e637614d4dbcc2218c0467787cc Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 Apr 2015 09:54:06 +0100 Subject: [PATCH] links preview resize fixed, version 0.8.4 --- Telegram/PrepareWin.bat | 8 ++++---- Telegram/SourceFiles/config.h | 4 ++-- Telegram/SourceFiles/mainwidget.cpp | 5 +++++ Telegram/Telegram.plist | 2 +- Telegram/Telegram.rc | Bin 5532 -> 5532 bytes Telegram/Telegram.xcodeproj/project.pbxproj | 12 ++++++------ Telegram/Version.sh | 2 +- 7 files changed, 19 insertions(+), 14 deletions(-) diff --git a/Telegram/PrepareWin.bat b/Telegram/PrepareWin.bat index f18a600f7..fa71d7bac 100644 --- a/Telegram/PrepareWin.bat +++ b/Telegram/PrepareWin.bat @@ -1,9 +1,9 @@ @echo OFF -set "AppVersion=8003" -set "AppVersionStrSmall=0.8.3" -set "AppVersionStr=0.8.3" -set "AppVersionStrFull=0.8.3.0" +set "AppVersion=8004" +set "AppVersionStrSmall=0.8.4" +set "AppVersionStr=0.8.4" +set "AppVersionStrFull=0.8.4.0" set "DevChannel=0" if %DevChannel% neq 0 goto preparedev diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index 87ca86a0b..6e26233ea 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org */ #pragma once -static const int32 AppVersion = 8003; -static const wchar_t *AppVersionStr = L"0.8.3"; +static const int32 AppVersion = 8004; +static const wchar_t *AppVersionStr = L"0.8.4"; static const bool DevChannel = false; static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)"; diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index f36cec797..8fefcad99 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1138,6 +1138,11 @@ void MainWidget::itemReplaced(HistoryItem *oldItem, HistoryItem *newItem) { void MainWidget::itemResized(HistoryItem *row, bool scrollToIt) { if (!row || (history.peer() == row->history()->peer && !row->detached())) { history.itemResized(row, scrollToIt); + } else if (row) { + row->history()->width = 0; + if (history.peer() == row->history()->peer) { + history.resizeEvent(0); + } } if (overview) { overview->itemResized(row, scrollToIt); diff --git a/Telegram/Telegram.plist b/Telegram/Telegram.plist index 1fd75ca6e..9075382d7 100644 --- a/Telegram/Telegram.plist +++ b/Telegram/Telegram.plist @@ -11,7 +11,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.8.3 + 0.8.4 CFBundleSignature ???? CFBundleURLTypes diff --git a/Telegram/Telegram.rc b/Telegram/Telegram.rc index 60f8116ece462172dc84856429c4d6616bd6a17e..f201743289f7f3d2d0c0a87e22cbf7804d3aac45 100644 GIT binary patch delta 50 zcmbQEJx6;(0WYJ;