fix: copy sticker owner ID if not found

This commit is contained in:
AlexeyZavar
2025-06-06 11:00:03 +03:00
parent 3be793032f
commit 29d1f1f14a
2 changed files with 6 additions and 8 deletions
@@ -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;
}