From b0617711ed861c5ecb5d74b2c52cf93f48d93b99 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 21 Feb 2022 04:20:20 +0300 Subject: [PATCH] Removed Ui::hideLayer from PinMessageBox. --- Telegram/SourceFiles/boxes/pin_messages_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/pin_messages_box.cpp b/Telegram/SourceFiles/boxes/pin_messages_box.cpp index 00c2d01d86..75459313df 100644 --- a/Telegram/SourceFiles/boxes/pin_messages_box.cpp +++ b/Telegram/SourceFiles/boxes/pin_messages_box.cpp @@ -122,8 +122,8 @@ void PinMessageBox::pinMessage() { MTP_int(_msgId) )).done([=](const MTPUpdates &result) { _peer->session().api().applyUpdates(result); - Ui::hideLayer(); + closeBox(); }).fail([=] { - Ui::hideLayer(); + closeBox(); }).send(); }