2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use base::call_delayed.

This commit is contained in:
John Preston
2019-09-26 13:55:35 +03:00
parent 09a7daf164
commit 30a1bd7ba2
29 changed files with 68 additions and 83 deletions

View File

@@ -29,6 +29,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "inline_bots/inline_bot_result.h"
#include "base/event_filter.h"
#include "base/unixtime.h"
#include "base/call_delayed.h"
#include "data/data_drafts.h"
#include "data/data_session.h"
#include "data/data_web_page.h"
@@ -3755,7 +3756,7 @@ void HistoryWidget::updateSendButtonType() {
&& (type == Type::Send || type == Type::Record));
if (delay != 0) {
App::CallDelayed(
base::call_delayed(
kRefreshSlowmodeLabelTimeout,
this,
[=] { updateSendButtonType(); });