feat: emoji pack author

This commit is contained in:
AlexeyZavar
2024-06-05 04:32:56 +03:00
parent b5c769196a
commit c86ea4807a
2 changed files with 33 additions and 4 deletions
@@ -554,9 +554,9 @@ void StickerSetBox::updateButtons() {
? tr::lng_stickers_copied_emoji(tr::now)
: tr::lng_stickers_copied(tr::now));
};
const auto addAuthorPack = [=](const std::shared_ptr<base::unique_qptr<Ui::PopupMenu>> &menu)
const auto addPackOwner = [=](const std::shared_ptr<base::unique_qptr<Ui::PopupMenu>> &menu)
{
if (type == Data::StickersType::Stickers) {
if (type == Data::StickersType::Stickers || type == Data::StickersType::Emoji) {
const auto pointer = Ui::MakeWeak(this);
(*menu)->addAction(
tr::ayu_MessageDetailsPackOwnerPC(tr::now),
@@ -636,7 +636,7 @@ void StickerSetBox::updateButtons() {
: tr::lng_stickers_share_pack)(tr::now),
[=] { share(); closeBox(); },
&st::menuIconShare);
addAuthorPack(menu);
addPackOwner(menu);
(*menu)->popup(QCursor::pos());
return true;
});
@@ -686,7 +686,7 @@ void StickerSetBox::updateButtons() {
archive,
&st::menuIconArchive);
}
addAuthorPack(menu);
addPackOwner(menu);
(*menu)->popup(QCursor::pos());
return true;
});