mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
fix: accidental crash
fix: update submodules
This commit is contained in:
parent
4fd0b008ba
commit
6d39a5f1d2
2 changed files with 9 additions and 8 deletions
|
@ -216,22 +216,23 @@ ActionStickerPackAuthor::ActionStickerPackAuthor(not_null<Menu::Menu *> menu,
|
|||
not_null<Main::Session *> session,
|
||||
ID authorId)
|
||||
: ActionWithSubText(menu, menu->st(), st::menuIconStickers, [=]
|
||||
{ }, tr::ayu_MessageDetailsPackOwnerPC(tr::now), QString()),
|
||||
{ }, tr::ayu_MessageDetailsPackOwnerPC(tr::now), QString(tr::ayu_MessageDetailsPackOwnerFetchingPC(tr::now))),
|
||||
_session(session)
|
||||
{
|
||||
const auto fetchingText = tr::ayu_MessageDetailsPackOwnerFetchingPC(tr::now);
|
||||
_subText = QString(fetchingText);
|
||||
|
||||
searchAuthor(authorId);
|
||||
}
|
||||
|
||||
void ActionStickerPackAuthor::searchAuthor(ID authorId)
|
||||
{
|
||||
const auto pointer = Ui::MakeWeak(this);
|
||||
searchById(authorId, _session, [=](const QString &username, UserData *user)
|
||||
{
|
||||
if (!pointer) {
|
||||
LOG(("ContextActionStickerAuthor: searchById callback after destruction"));
|
||||
return;
|
||||
}
|
||||
if (username.isEmpty() && !user) {
|
||||
const auto notFoundText = tr::ayu_MessageDetailsPackOwnerNotFoundPC(tr::now);
|
||||
_subText = QString(notFoundText);
|
||||
_subText = QString(tr::ayu_MessageDetailsPackOwnerNotFoundPC(tr::now));
|
||||
setClickedCallback(
|
||||
[=]
|
||||
{
|
||||
|
@ -265,7 +266,7 @@ void ActionStickerPackAuthor::searchAuthor(ID authorId)
|
|||
|
||||
setClickedCallback(callback);
|
||||
|
||||
_subText = title;
|
||||
_subText = QString(title);
|
||||
crl::on_main(
|
||||
[=]
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 58e8de3e35b2ab87a3ae225772d45c171fde2888
|
||||
Subproject commit d79a85b117f32d97670fe37f3aec6b1e4faa658c
|
Loading…
Add table
Reference in a new issue