2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Show slowmode error messages.

This commit is contained in:
John Preston
2019-07-17 12:37:42 +02:00
parent 01d0479335
commit 04bf24288a
16 changed files with 210 additions and 68 deletions

View File

@@ -74,9 +74,10 @@ void ApplyArchivedResult(const MTPDmessages_stickerSetInstallResultArchive &d) {
Local::writeInstalledStickers();
Local::writeArchivedStickers();
Ui::Toast::Config toast;
auto toast = Ui::Toast::Config();
toast.text = tr::lng_stickers_packs_archived(tr::now);
toast.maxWidth = st::stickersToastMaxWidth;
toast.maxWidth = toast.minWidth = st::stickersToastMaxWidth;
toast.multiline = true;
toast.padding = st::stickersToastPadding;
Ui::Toast::Show(toast);
// Ui::show(Box<StickersBox>(archived), LayerOption::KeepOther);