From 95a1ab6b0b09eee09859dc79febbe197e667b2b4 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 12 Nov 2022 09:33:19 +0300 Subject: [PATCH] Fixed display of send as button above voice record bar. --- Telegram/SourceFiles/history/history_widget.cpp | 2 ++ .../history/view/controls/history_view_compose_controls.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index d29efe271..6382480c7 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -2444,6 +2444,7 @@ void HistoryWidget::setEditMsgId(MsgId msgId) { _editMsgId = msgId; if (_history) { refreshSendAsToggle(); + orderWidgets(); } registerDraftSource(); } @@ -2568,6 +2569,7 @@ void HistoryWidget::setupSendAsToggle() { refreshSendAsToggle(); updateControlsVisibility(); updateControlsGeometry(); + orderWidgets(); }, lifetime()); } diff --git a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp index 620484b4a..2a3516ea3 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp @@ -1375,6 +1375,7 @@ void ComposeControls::init() { if (_history && updateSendAsButton()) { updateControlsVisibility(); updateControlsGeometry(_wrap->size()); + orderControls(); } registerDraftSource(); }, _wrap->lifetime()); @@ -2064,6 +2065,7 @@ void ComposeControls::initSendAsButton() { if (updateSendAsButton()) { updateControlsVisibility(); updateControlsGeometry(_wrap->size()); + orderControls(); } }, _wrap->lifetime()); }