commit a87cb279208bf8746e6e60f316bd0a3ae14b2020
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Mon Apr 9 17:31:44 2018 +0200
Added custom API tokens (rfbz#4859).
telegram-desktop-api-tokens.patch | 29 +++++++++++++++++++++++++++++
telegram-desktop.spec | 6 +++++-
2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/telegram-desktop-api-tokens.patch b/telegram-desktop-api-tokens.patch
new file mode 100644
index 0000000..b4c082f
--- /dev/null
+++ b/telegram-desktop-api-tokens.patch
@@ -0,0 +1,29 @@
+From c6a39ae561374ef2cc620f75a4f9839729544ef8 Mon Sep 17 00:00:00 2001
+From: Vitaly Zaitsev <vitaly(a)easycoding.org>
+Date: Mon, 9 Apr 2018 16:57:13 +0200
+Subject: [PATCH] Changed default Telegram Desktop's test API keys to obtained
+ specially for Fedora/RPMFusion. We cannot hide them because we need to
+ provide reproducible builds.
+
+---
+ Telegram/SourceFiles/config.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h
+index 6384d44c..4aa105e4 100644
+--- a/Telegram/SourceFiles/config.h
++++ b/Telegram/SourceFiles/config.h
+@@ -217,8 +217,8 @@ w/CVnbwQOw0g5GBwwFV3r0uTTvy44xx8XXxk+Qknu4eBCsmrAFNnAgMBAAE=\n\
+ #ifdef CUSTOM_API_ID
+ #include "../../../TelegramPrivate/custom_api_id.h" // Custom API id and API
hash
+ #else
+-static const int32 ApiId = 17349;
+-static const char *ApiHash = "344583e45741c457fe1862106095a5eb";
++static const int32 ApiId = 208164;
++static const char *ApiHash = "dfbe1bc42dc9d20507e17d1814cc2f0a";
+ #endif
+
+ #if Q_BYTE_ORDER == Q_BIG_ENDIAN
+--
+2.14.3
+
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 6d85b48..92cec4f 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -11,7 +11,7 @@
Summary: Telegram Desktop official messaging app
Name: telegram-desktop
Version: 1.2.17
-Release: 1%{?dist}
+Release: 2%{?dist}
# Application and 3rd-party modules licensing:
# * S0 (Telegram Desktop) - GPLv3+ with OpenSSL exception -- main source;
@@ -27,6 +27,7 @@ ExclusiveArch: i686 x86_64
Source0: %{url}/archive/v%{version}.tar.gz#/%{appname}-%{version}.tar.gz
Source1:
https://github.com/telegramdesktop/crl/archive/%{commit1}.tar.gz#/crl-%{s...
Patch0: %{name}-build-fixes.patch
+Patch1: %{name}-api-tokens.patch
Recommends: libappindicator-gtk3%{?_isa}
Requires: qt5-qtimageformats%{?_isa}
@@ -136,6 +137,9 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_datadir}/metainfo/%{name}.
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog
+* Mon Apr 09 2018 Vitaly Zaitsev <vitaly(a)easycoding.org> - 1.2.17-2
+- Added custom API tokens.
+
* Sun Apr 08 2018 Vitaly Zaitsev <vitaly(a)easycoding.org> - 1.2.17-1
- Updated to 1.2.17.