2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Don't close recommendations.

This commit is contained in:
John Preston
2024-04-19 16:10:42 +04:00
parent da423b5bd2
commit a88770a8ec
6 changed files with 79 additions and 15 deletions

View File

@@ -41,6 +41,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/peers/add_bot_to_chat_box.h"
#include "boxes/peers/edit_contact_box.h"
#include "boxes/report_messages_box.h"
#include "boxes/share_box.h"
#include "boxes/translate_box.h"
#include "lang/lang_keys.h"
#include "menu/menu_mute.h"
@@ -131,9 +132,8 @@ base::options::toggle ShowPeerIdBelowAbout({
+ addToLink;
}
if (!link.isEmpty()) {
QGuiApplication::clipboard()->setText(link);
if (const auto window = weak.get()) {
window->showToast(tr::lng_username_copied(tr::now));
if (const auto strong = weak.get()) {
FastShareLink(strong, link);
}
}
};