Added delay for clicked callback of edit media button.

This commit is contained in:
23rd 2019-04-08 20:05:31 +03:00 committed by John Preston
parent 392d90dc1d
commit 839feed329
1 changed files with 4 additions and 1 deletions

View File

@ -522,7 +522,10 @@ void EditCaptionBox::createEditMediaButton() {
// Create edit media button. // Create edit media button.
_editMedia.create(this, st::editMediaButton); _editMedia.create(this, st::editMediaButton);
updateEditMediaButton(); updateEditMediaButton();
_editMedia->setClickedCallback(buttonCallback); _editMedia->setClickedCallback(
App::LambdaDelayed(st::historyAttach.ripple.hideDuration, this, [=] {
buttonCallback();
}));
} }
void EditCaptionBox::prepare() { void EditCaptionBox::prepare() {