[Improvement] Message ID
This commit is contained in:
		
							parent
							
								
									a5e1cec81b
								
							
						
					
					
						commit
						b4acf137e4
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -111,6 +111,7 @@
 | 
				
			||||||
	"ktg_settings_chat_id_disable": "Hide",
 | 
						"ktg_settings_chat_id_disable": "Hide",
 | 
				
			||||||
	"ktg_settings_chat_id_telegram": "Telegram API",
 | 
						"ktg_settings_chat_id_telegram": "Telegram API",
 | 
				
			||||||
	"ktg_settings_chat_id_bot": "Bot API",
 | 
						"ktg_settings_chat_id_bot": "Bot API",
 | 
				
			||||||
 | 
						"ktg_message_id": "Message ID: {id}",
 | 
				
			||||||
	"ktg_settings_monospace_large_bubbles": "Expand bubbles with monospace",
 | 
						"ktg_settings_monospace_large_bubbles": "Expand bubbles with monospace",
 | 
				
			||||||
	"ktg_bot_id_copied": "Bot ID copied to clipboard.",
 | 
						"ktg_bot_id_copied": "Bot ID copied to clipboard.",
 | 
				
			||||||
	"ktg_user_id_copied": "User ID copied to clipboard.",
 | 
						"ktg_user_id_copied": "User ID copied to clipboard.",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
#include "history/view/history_view_element.h"
 | 
					#include "history/view/history_view_element.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "kotato/kotato_lang.h"
 | 
				
			||||||
#include "kotato/kotato_settings.h"
 | 
					#include "kotato/kotato_settings.h"
 | 
				
			||||||
#include "api/api_chat_invite.h"
 | 
					#include "api/api_chat_invite.h"
 | 
				
			||||||
#include "history/view/history_view_service_message.h"
 | 
					#include "history/view/history_view_service_message.h"
 | 
				
			||||||
| 
						 | 
					@ -286,6 +287,9 @@ QString DateTooltipText(not_null<Element*> view) {
 | 
				
			||||||
	if (item->isScheduled() && item->isSilent()) {
 | 
						if (item->isScheduled() && item->isSilent()) {
 | 
				
			||||||
		dateText += '\n' + QChar(0xD83D) + QChar(0xDD15);
 | 
							dateText += '\n' + QChar(0xD83D) + QChar(0xDD15);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						if (const auto msgId = view->data()->fullId().msg) {
 | 
				
			||||||
 | 
							dateText += '\n' + ktr("ktg_message_id", {"id", QString::number(msgId.bare)});
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	return dateText;
 | 
						return dateText;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue