Fixed first frame animation of opening schedule section for send button.

This commit is contained in:
23rd
2025-08-30 15:37:42 +03:00
parent a226f0b58c
commit 7e48cb97b0
@@ -2240,6 +2240,12 @@ void ComposeControls::initSendButton() {
updateSendButtonType();
}, _send->lifetime());
Core::App().mediaDevices().recordAvailabilityValue(
) | rpl::start_with_next([=](Webrtc::RecordAvailability value) {
_recordAvailability = value;
updateSendButtonType();
}, _send->lifetime());
_send->finishAnimating();
_send->clicks(
@@ -2271,12 +2277,6 @@ void ComposeControls::initSendButton() {
[=] { return sendButtonMenuDetails(); },
sendAction);
Core::App().mediaDevices().recordAvailabilityValue(
) | rpl::start_with_next([=](Webrtc::RecordAvailability value) {
_recordAvailability = value;
updateSendButtonType();
}, _send->lifetime());
_send->widthValue() | rpl::skip(1) | rpl::start_with_next([=] {
updateControlsGeometry(_wrap->size());
}, _send->lifetime());