mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: accidental crash
fix: update submodules
This commit is contained in:
@@ -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
Submodule Telegram/lib_ui updated: 58e8de3e35...d79a85b117
Reference in New Issue
Block a user