From d2272ec75e64bbafb491d3d84bf915e73e888e2d Mon Sep 17 00:00:00 2001 From: AlexeyZavar Date: Sat, 4 Oct 2025 17:19:29 +0300 Subject: [PATCH] chore: fix typo --- Telegram/CMakeLists.txt | 2 +- Telegram/Resources/langs/lang.strings | 4 ++-- Telegram/SourceFiles/ayu/ayu_constants.h | 13 ------------- Telegram/SourceFiles/ayu/data/messages_storage.cpp | 3 +-- 4 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 Telegram/SourceFiles/ayu/ayu_constants.h diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 5c84b2ffd4..e25ce766d1 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -114,7 +114,6 @@ set(ayugram_files ayu/ayu_lang.h ayu/ayu_infra.cpp ayu/ayu_infra.h - ayu/ayu_constants.h ayu/utils/ayu_mapper.cpp ayu/utils/ayu_mapper.h ayu/utils/qt_key_modifiers_extended.h @@ -1861,6 +1860,7 @@ endif() nice_target_sources(Telegram ${res_loc} PRIVATE qrc/ayu/ayu.qrc + langs/ayu.strings qrc/emoji_1.qrc qrc/emoji_2.qrc diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 280d11f9a7..17adb92724 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -6910,7 +6910,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_CategoriesHeader" = "Categories"; "ayu_SupportHeader" = "Support"; "ayu_SupportDescription1" = "Support Development"; -"ayu_SupportDescription2" = "{item} and get an exclusive badge!"; +"ayu_SupportDescription2" = "{item} and get an unique badge!"; "ayu_SupportBoxHeader" = "Support Development"; "ayu_SupportBoxInfo" = "By supporting the project, you not only contribute to its development but also get a unique badge."; "ayu_SupportBoxMakeDonationHeader" = "Make a Donation"; @@ -7186,7 +7186,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_SessionTerminated" = "Session **{item}** was terminated. You may still browse cached messages."; "ayu_LocalPremiumNotice" = "You're using **local** Telegram Premium.\nIt **won't** give you any benefits.\n**Enjoy the star near your nickname!**"; "ayu_DeveloperPopup" = "**{item}** is a member of the **exteraGram** development team."; -"ayu_SupporterPopup" = "**{item}** supported the development of **exteraGram** or **AyuGram** and received an exclusive badge."; +"ayu_SupporterPopup" = "**{item}** supported the development of **exteraGram** or **AyuGram** and received an unique badge."; "ayu_OfficialResourcePopup" = "**{item}** is the official resource of **exteraGram** or **AyuGram**."; "ayu_SettingsWatermark" = "AyuGram is developed and maintained by Radolyn Labs."; "ayu_SettingsDescription" = "Telegram Desktop fork focused on customization and ToS-breaking features."; diff --git a/Telegram/SourceFiles/ayu/ayu_constants.h b/Telegram/SourceFiles/ayu/ayu_constants.h deleted file mode 100644 index b4a7054f73..0000000000 --- a/Telegram/SourceFiles/ayu/ayu_constants.h +++ /dev/null @@ -1,13 +0,0 @@ -// This is the source code of AyuGram for Desktop. -// -// We do not and cannot prevent the use of our code, -// but be respectful and credit the original author. -// -// Copyright @Radolyn, 2025 -#pragma once - -// https://github.com/AyuGram/AyuGram4AX/blob/rewrite/TMessagesProj/src/main/java/com/radolyn/ayugram/AyuConstants.java -constexpr int DOCUMENT_TYPE_NONE = 0; -constexpr int DOCUMENT_TYPE_PHOTO = 1; -constexpr int DOCUMENT_TYPE_STICKER = 2; -constexpr int DOCUMENT_TYPE_FILE = 3; diff --git a/Telegram/SourceFiles/ayu/data/messages_storage.cpp b/Telegram/SourceFiles/ayu/data/messages_storage.cpp index 22721c9be4..036d65781e 100644 --- a/Telegram/SourceFiles/ayu/data/messages_storage.cpp +++ b/Telegram/SourceFiles/ayu/data/messages_storage.cpp @@ -6,7 +6,6 @@ // Copyright @Radolyn, 2025 #include "ayu/data/messages_storage.h" -#include "ayu/ayu_constants.h" #include "ayu/data/ayu_database.h" #include "ayu/utils/ayu_mapper.h" #include "ayu/utils/telegram_helpers.h" @@ -82,7 +81,7 @@ void map(not_null item, AyuMessageBase &message) { // todo: implement mapping message.mediaPath = "/"; // message.hqThumbPath - message.documentType = DOCUMENT_TYPE_NONE; + message.documentType = 0; // document type none // message.documentSerialized // message.thumbsSerialized // message.documentAttributesSerialized