diff options
| author | levlam <levlam@telegram.org> | 2026-06-30 17:47:39 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-06-30 17:47:39 +0300 |
| commit | a825ffc1bbc44745d622d2ff9541a70873398f8c (patch) | |
| tree | 12e33f2247bcca18982421f7b7a4b195485a3e0f | |
| parent | f361ab84273431387cd573de8c8cbb11b5b0f2c0 (diff) | |
Add option "show_message_edit_date_by_default".
| -rw-r--r-- | td/generate/scheme/td_api.tl | 3 | ||||
| -rw-r--r-- | td/telegram/ConfigManager.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
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<telegram_api::JSONValue> &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"}, |
