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

Fixed filling menu for inline bots and autocomplete in HistoryWidget.

Regression was introduced in e1017380ec.
This commit is contained in:
23rd
2021-03-13 12:48:29 +03:00
parent 09966fb291
commit b373a9ed22

View File

@@ -338,6 +338,8 @@ HistoryWidget::HistoryWidget(
: _keyboard->moderateKeyActivate(key);
});
_fieldAutocomplete->setSendMenuType([=] { return sendMenuType(); });
if (_supportAutocomplete) {
supportInitAutocomplete();
}
@@ -1265,6 +1267,7 @@ void HistoryWidget::applyInlineBotQuery(UserData *bot, const QString &query) {
});
_inlineResults->setCurrentDialogsEntryState(
computeDialogsEntryState());
_inlineResults->setSendMenuType([=] { return sendMenuType(); });
_inlineResults->requesting(
) | rpl::start_with_next([=](bool requesting) {
_tabbedSelectorToggle->setLoading(requesting);