diff --git a/Telegram/Resources/langs/rewrites/en.json b/Telegram/Resources/langs/rewrites/en.json index 7ef431639..24f9dbc0e 100644 --- a/Telegram/Resources/langs/rewrites/en.json +++ b/Telegram/Resources/langs/rewrites/en.json @@ -126,6 +126,7 @@ "ktg_settings_chat_id_disable": "Hide", "ktg_settings_chat_id_telegram": "Telegram API", "ktg_settings_chat_id_bot": "Bot API", + "ktg_message_id": "Message ID: {id}", "ktg_settings_monospace_large_bubbles": "Expand bubbles with monospace", "ktg_bot_id_copied": "Bot ID copied to clipboard.", "ktg_user_id_copied": "User ID copied to clipboard.", diff --git a/Telegram/SourceFiles/history/view/history_view_element.cpp b/Telegram/SourceFiles/history/view/history_view_element.cpp index 88254371b..97f7940d2 100644 --- a/Telegram/SourceFiles/history/view/history_view_element.cpp +++ b/Telegram/SourceFiles/history/view/history_view_element.cpp @@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "history/view/history_view_element.h" +#include "kotato/kotato_lang.h" #include "kotato/kotato_settings.h" #include "api/api_chat_invite.h" #include "history/view/history_view_service_message.h" @@ -272,6 +273,9 @@ QString DateTooltipText(not_null view) { + tr::lng_signed_author(tr::now, lt_user, msgsigned->author); } } + if (const auto msgId = view->data()->fullId().msg) { + dateText += '\n' + ktr("ktg_message_id", {"id", QString::number(msgId.bare)}); + } return dateText; }