mirror of https://github.com/procxx/kepka.git
				
				
				
			Allowing only switch button in inline bot results. 9040124 closed beta.
This commit is contained in:
		
							parent
							
								
									fe5e085fb8
								
							
						
					
					
						commit
						d960ac2828
					
				| 
						 | 
				
			
			@ -23,7 +23,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
 | 
			
		|||
static const int32 AppVersion = 9040;
 | 
			
		||||
static const wchar_t *AppVersionStr = L"0.9.40";
 | 
			
		||||
static const bool DevVersion = false;
 | 
			
		||||
#define BETA_VERSION (9040123ULL) // just comment this line to build public version
 | 
			
		||||
#define BETA_VERSION (9040124ULL) // just comment this line to build public version
 | 
			
		||||
 | 
			
		||||
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
 | 
			
		||||
static const wchar_t *AppName = L"Telegram Desktop";
 | 
			
		||||
| 
						 | 
				
			
			@ -295,7 +295,7 @@ static const char *ApiHash = "344583e45741c457fe1862106095a5eb";
 | 
			
		|||
#else
 | 
			
		||||
static const char *BetaPrivateKey = "";
 | 
			
		||||
#undef BETA_VERSION
 | 
			
		||||
#define BETA_VERSION 0
 | 
			
		||||
#define BETA_VERSION (0)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
inline const char *cApiDeviceModel() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1931,7 +1931,18 @@ void StickerPanInner::refreshSwitchPmButton(const InlineCacheEntry *entry) {
 | 
			
		|||
int StickerPanInner::refreshInlineRows(UserData *bot, const InlineCacheEntry *entry, bool resultsDeleted) {
 | 
			
		||||
	_inlineBot = bot;
 | 
			
		||||
	refreshSwitchPmButton(entry);
 | 
			
		||||
	if (!entry || (entry->results.isEmpty() && (!_inlineBot || _inlineBot->username != cInlineGifBotUsername()))) {
 | 
			
		||||
	auto clearResults = [this, entry]() {
 | 
			
		||||
		if (!entry) {
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
		if (entry->results.isEmpty() && entry->switchPmText.isEmpty()) {
 | 
			
		||||
			if (!_inlineBot || _inlineBot->username != cInlineGifBotUsername()) {
 | 
			
		||||
				return true;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
	};
 | 
			
		||||
	if (clearResults()) {
 | 
			
		||||
		if (resultsDeleted) {
 | 
			
		||||
			clearInlineRows(true);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			@ -3780,7 +3791,7 @@ bool EmojiPan::refreshInlineRows(int32 *added) {
 | 
			
		|||
	auto i = _inlineCache.constFind(_inlineQuery);
 | 
			
		||||
	const internal::InlineCacheEntry *entry = nullptr;
 | 
			
		||||
	if (i != _inlineCache.cend()) {
 | 
			
		||||
		if (!i.value()->results.isEmpty()) {
 | 
			
		||||
		if (!i.value()->results.isEmpty() || !i.value()->switchPmText.isEmpty()) {
 | 
			
		||||
			entry = i.value();
 | 
			
		||||
		}
 | 
			
		||||
		_inlineNextOffset = i.value()->nextOffset;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,8 +34,8 @@ IDI_ICON1               ICON                    "Resources\\art\\icon256.ico"
 | 
			
		|||
//
 | 
			
		||||
 | 
			
		||||
VS_VERSION_INFO VERSIONINFO
 | 
			
		||||
 FILEVERSION 0,9,40,123
 | 
			
		||||
 PRODUCTVERSION 0,9,40,123
 | 
			
		||||
 FILEVERSION 0,9,40,124
 | 
			
		||||
 PRODUCTVERSION 0,9,40,124
 | 
			
		||||
 FILEFLAGSMASK 0x3fL
 | 
			
		||||
#ifdef _DEBUG
 | 
			
		||||
 FILEFLAGS 0x1L
 | 
			
		||||
| 
						 | 
				
			
			@ -51,10 +51,10 @@ BEGIN
 | 
			
		|||
        BLOCK "040904b0"
 | 
			
		||||
        BEGIN
 | 
			
		||||
            VALUE "CompanyName", "Telegram Messenger LLP"
 | 
			
		||||
            VALUE "FileVersion", "0.9.40.123"
 | 
			
		||||
            VALUE "FileVersion", "0.9.40.124"
 | 
			
		||||
            VALUE "LegalCopyright", "Copyright (C) 2014-2016"
 | 
			
		||||
            VALUE "ProductName", "Telegram Desktop"
 | 
			
		||||
            VALUE "ProductVersion", "0.9.40.123"
 | 
			
		||||
            VALUE "ProductVersion", "0.9.40.124"
 | 
			
		||||
        END
 | 
			
		||||
    END
 | 
			
		||||
    BLOCK "VarFileInfo"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,4 +3,4 @@ AppVersionStrMajor 0.9
 | 
			
		|||
AppVersionStrSmall 0.9.40
 | 
			
		||||
AppVersionStr      0.9.40
 | 
			
		||||
DevChannel         0
 | 
			
		||||
BetaVersion        9040123
 | 
			
		||||
BetaVersion        9040124
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue