mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed first frame animation of opening schedule section for send button.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user