mirror of https://github.com/procxx/kepka.git
				
				
				
			0.7.22.dev version with fixed messages delivery
This commit is contained in:
		
							parent
							
								
									8991b5ead3
								
							
						
					
					
						commit
						db6ed90337
					
				| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
@echo OFF
 | 
			
		||||
 | 
			
		||||
set "AppVersion=7021"
 | 
			
		||||
set "AppVersionStrSmall=0.7.21"
 | 
			
		||||
set "AppVersionStr=0.7.21"
 | 
			
		||||
set "AppVersionStrFull=0.7.21.0"
 | 
			
		||||
set "AppVersion=7022"
 | 
			
		||||
set "AppVersionStrSmall=0.7.22"
 | 
			
		||||
set "AppVersionStr=0.7.22"
 | 
			
		||||
set "AppVersionStrFull=0.7.22.0"
 | 
			
		||||
set "DevChannel=1"
 | 
			
		||||
 | 
			
		||||
if %DevChannel% neq 0 goto preparedev
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -653,10 +653,10 @@ void Application::checkMapVersion() {
 | 
			
		|||
		psRegisterCustomScheme();
 | 
			
		||||
		if (Local::oldMapVersion()) {
 | 
			
		||||
			QString versionFeatures;
 | 
			
		||||
			if (DevChannel && Local::oldMapVersion() < 7021) {
 | 
			
		||||
				versionFeatures = QString::fromUtf8("\xe2\x80\x94 Reply to specific messages in groups\n\xe2\x80\x94 Mention @usernames in groups to notify multiple users");
 | 
			
		||||
			if (DevChannel && Local::oldMapVersion() < 7022) {
 | 
			
		||||
				versionFeatures = QString::fromUtf8("\xe2\x80\x94 Critical bug with messages delivery fixed");
 | 
			
		||||
			} else if (!DevChannel && Local::oldMapVersion() < 7020) {
 | 
			
		||||
				versionFeatures = lang(lng_new_version7020).trimmed();
 | 
			
		||||
				versionFeatures = lang(lng_new_version7022).trimmed();
 | 
			
		||||
			}
 | 
			
		||||
			if (!versionFeatures.isEmpty()) {
 | 
			
		||||
				versionFeatures = lng_new_version_wrap(lt_version, QString::fromStdWString(AppVersionStr), lt_changes, versionFeatures, lt_link, qsl("https://desktop.telegram.org/#changelog"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
 | 
			
		|||
*/
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
static const int32 AppVersion = 7021;
 | 
			
		||||
static const wchar_t *AppVersionStr = L"0.7.21";
 | 
			
		||||
static const int32 AppVersion = 7022;
 | 
			
		||||
static const wchar_t *AppVersionStr = L"0.7.22";
 | 
			
		||||
static const bool DevChannel = true;
 | 
			
		||||
 | 
			
		||||
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2234,6 +2234,7 @@ void MainWidget::clearSkippedPtsUpdates() {
 | 
			
		|||
	_byPtsSentMessage.clear();
 | 
			
		||||
	_byPtsStatedMessage.clear();
 | 
			
		||||
	_byPtsStatedMessages.clear();
 | 
			
		||||
	updSkipPtsUpdateLevel = 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool MainWidget::updPtsUpdated(int pts, int ptsCount) { // return false if need to save that update and apply later
 | 
			
		||||
| 
						 | 
				
			
			@ -2700,11 +2701,13 @@ void MainWidget::handleUpdates(const MTPUpdates &updates) {
 | 
			
		|||
 | 
			
		||||
	case mtpc_updateShortMessage: {
 | 
			
		||||
		const MTPDupdateShortMessage &d(updates.c_updateShortMessage());
 | 
			
		||||
		if (!App::userLoaded(d.vuser_id.v)) {
 | 
			
		||||
			return getDifference();
 | 
			
		||||
		}
 | 
			
		||||
		if (!updPtsUpdated(d.vpts.v, d.vpts_count.v)) {
 | 
			
		||||
			_byPtsUpdates.insert(ptsKey(SkippedUpdates), updates);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		if (!App::userLoaded(d.vuser_id.v)) return getDifference();
 | 
			
		||||
		bool out = (d.vflags.v & MTPDmessage_flag_out);
 | 
			
		||||
		HistoryItem *item = App::histories().addToBack(MTP_message(d.vflags, d.vid, out ? MTP_int(MTP::authedId()) : d.vuser_id, MTP_peerUser(out ? d.vuser_id : MTP_int(MTP::authedId())), d.vfwd_from_id, d.vfwd_date, d.vreply_to_msg_id, d.vdate, d.vmessage, MTP_messageMediaEmpty()));
 | 
			
		||||
		if (item) {
 | 
			
		||||
| 
						 | 
				
			
			@ -2716,11 +2719,13 @@ void MainWidget::handleUpdates(const MTPUpdates &updates) {
 | 
			
		|||
 | 
			
		||||
	case mtpc_updateShortChatMessage: {
 | 
			
		||||
		const MTPDupdateShortChatMessage &d(updates.c_updateShortChatMessage());
 | 
			
		||||
		if (!App::chatLoaded(d.vchat_id.v) || !App::userLoaded(d.vfrom_id.v) || (d.has_fwd_from_id() && !App::userLoaded(d.vfwd_from_id.v))) {
 | 
			
		||||
			return getDifference();
 | 
			
		||||
		}
 | 
			
		||||
		if (!updPtsUpdated(d.vpts.v, d.vpts_count.v)) {
 | 
			
		||||
			_byPtsUpdates.insert(ptsKey(SkippedUpdates), updates);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		if (!App::chatLoaded(d.vchat_id.v) || !App::userLoaded(d.vfrom_id.v) || (d.has_fwd_from_id() && !App::userLoaded(d.vfwd_from_id.v))) return getDifference();
 | 
			
		||||
		HistoryItem *item = App::histories().addToBack(MTP_message(d.vflags, d.vid, d.vfrom_id, MTP_peerChat(d.vchat_id), d.vfwd_from_id, d.vfwd_date, d.vreply_to_msg_id, d.vdate, d.vmessage, MTP_messageMediaEmpty()));
 | 
			
		||||
		if (item) {
 | 
			
		||||
			history.peerMessagesUpdated(item->history()->peer->id);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
	<key>CFBundlePackageType</key>
 | 
			
		||||
	<string>APPL</string>
 | 
			
		||||
	<key>CFBundleShortVersionString</key>
 | 
			
		||||
	<string>0.7.21</string>
 | 
			
		||||
	<string>0.7.22</string>
 | 
			
		||||
	<key>CFBundleSignature</key>
 | 
			
		||||
	<string>????</string>
 | 
			
		||||
	<key>CFBundleURLTypes</key>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -1667,7 +1667,7 @@
 | 
			
		|||
			buildSettings = {
 | 
			
		||||
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 | 
			
		||||
				COPY_PHASE_STRIP = NO;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.21;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.22;
 | 
			
		||||
				DEBUG_INFORMATION_FORMAT = dwarf;
 | 
			
		||||
				GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
 | 
			
		||||
				GCC_OPTIMIZATION_LEVEL = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -1685,7 +1685,7 @@
 | 
			
		|||
			buildSettings = {
 | 
			
		||||
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 | 
			
		||||
				COPY_PHASE_STRIP = YES;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.21;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.22;
 | 
			
		||||
				GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
 | 
			
		||||
				GCC_OPTIMIZATION_LEVEL = fast;
 | 
			
		||||
				GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
 | 
			
		||||
| 
						 | 
				
			
			@ -1711,10 +1711,10 @@
 | 
			
		|||
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
			
		||||
				CODE_SIGN_IDENTITY = "";
 | 
			
		||||
				COPY_PHASE_STRIP = NO;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.21;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.22;
 | 
			
		||||
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 | 
			
		||||
				DYLIB_COMPATIBILITY_VERSION = 0.7;
 | 
			
		||||
				DYLIB_CURRENT_VERSION = 0.7.21;
 | 
			
		||||
				DYLIB_CURRENT_VERSION = 0.7.22;
 | 
			
		||||
				ENABLE_STRICT_OBJC_MSGSEND = YES;
 | 
			
		||||
				FRAMEWORK_SEARCH_PATHS = "";
 | 
			
		||||
				GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
 | 
			
		||||
| 
						 | 
				
			
			@ -1852,10 +1852,10 @@
 | 
			
		|||
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
			
		||||
				CODE_SIGN_IDENTITY = "";
 | 
			
		||||
				COPY_PHASE_STRIP = NO;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.21;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = 0.7.22;
 | 
			
		||||
				DEBUG_INFORMATION_FORMAT = dwarf;
 | 
			
		||||
				DYLIB_COMPATIBILITY_VERSION = 0.7;
 | 
			
		||||
				DYLIB_CURRENT_VERSION = 0.7.21;
 | 
			
		||||
				DYLIB_CURRENT_VERSION = 0.7.22;
 | 
			
		||||
				ENABLE_STRICT_OBJC_MSGSEND = YES;
 | 
			
		||||
				FRAMEWORK_SEARCH_PATHS = "";
 | 
			
		||||
				GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,2 +1,2 @@
 | 
			
		|||
echo 7021 0.7.21 1
 | 
			
		||||
echo 7022 0.7.22 1
 | 
			
		||||
# AppVersion AppVersionStr DevChannel
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue