mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: copy sticker owner ID if not found
This commit is contained in:
@@ -791,7 +791,7 @@ void StickerSetBox::updateButtons() {
|
||||
searchById(
|
||||
innerId,
|
||||
session,
|
||||
[session, weak](const QString &username, UserData *user)
|
||||
[session, weak, innerId](const QString &username, UserData *user)
|
||||
{
|
||||
if (!weak) {
|
||||
return;
|
||||
@@ -803,7 +803,8 @@ void StickerSetBox::updateButtons() {
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
strongInner->showToast(tr::ayu_UserNotFoundMessage(tr::now));
|
||||
QGuiApplication::clipboard()->setText(QString::number(innerId));
|
||||
strongInner->showToast(tr::ayu_IDCopiedToast(tr::now));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user