From a825ffc1bbc44745d622d2ff9541a70873398f8c Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 30 Jun 2026 17:47:39 +0300 Subject: Add option "show_message_edit_date_by_default". --- td/generate/scheme/td_api.tl | 3 ++- td/telegram/ConfigManager.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index c2b0ddb57..982511c30 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3062,7 +3062,8 @@ factCheck text:formattedText country_code:string = FactCheck; //@contains_unread_mention True, if the message contains an unread mention for the current user //@contains_unread_poll_votes True, if the message is a poll message with unread votes //@date Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages -//@edit_date Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages +//@edit_date Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages. If getOption("show_message_edit_date_by_default") is true, +//-then the date must be shown along with the message instead of the date when the message was sent //@forward_info Information about the initial message sender; may be null if none or unknown //@import_info Information about the initial message for messages created with importMessages; may be null if the message isn't imported //@interaction_info Information about interactions with the message; may be null if none diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index f0dfc2184..bda629a9b 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -1366,6 +1366,7 @@ void ConfigManager::process_app_config(tl_object_ptr &c {"autoarchive_setting_available", "can_archive_and_mute_new_chats_from_unknown_users"}, {"can_edit_factcheck", "can_edit_fact_check"}, {"channel_revenue_withdrawal_enabled", "can_withdraw_chat_revenue"}, + {"message_primary_edited_date", "show_message_edit_date_by_default"}, {"premium_gift_attach_menu_icon", "gift_premium_from_attachment_menu"}, {"premium_gift_text_field_icon", "gift_premium_from_input_field"}, {"settings_display_passkeys", "can_use_login_passkey"}, -- cgit v1.2.3