mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed showing of multiline toast from comments button.
This commit is contained in:
parent
728ec0974a
commit
59c66d1f49
1 changed files with 6 additions and 4 deletions
|
@ -25,7 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/effects/reaction_fly_animation.h"
|
||||
#include "ui/chat/message_bubble.h"
|
||||
#include "ui/chat/chat_style.h"
|
||||
#include "ui/toast/toast.h"
|
||||
#include "ui/toasts/common_toasts.h"
|
||||
#include "ui/text/text_utilities.h"
|
||||
#include "ui/text/text_entity.h"
|
||||
#include "ui/cached_round_corners.h"
|
||||
|
@ -2036,9 +2036,11 @@ ClickHandlerPtr Message::createGoToCommentsLink() const {
|
|||
const auto history = item->history();
|
||||
if (const auto channel = history->peer->asChannel()) {
|
||||
if (channel->invitePeekExpires()) {
|
||||
Ui::Toast::Show(
|
||||
Window::Show(controller).toastParent(),
|
||||
tr::lng_channel_invite_private(tr::now));
|
||||
const auto show = Window::Show(controller);
|
||||
Ui::ShowMultilineToast({
|
||||
.parentOverride = show.toastParent(),
|
||||
.text = { tr::lng_channel_invite_private(tr::now) },
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue