2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Inline bot cancel button added.

It replaces Send button when the user is editing an inline bot
query. First cancel clears the inline bot request, second one
clears the field entirely. Escape key acts the same as cancel.
This commit is contained in:
John Preston
2016-04-09 15:02:50 +04:00
parent c3c82eac2d
commit 0110a62776
9 changed files with 246 additions and 153 deletions

View File

@@ -3655,7 +3655,7 @@ void EmojiPan::inlineBotChanged() {
if (_inlineRequestId) MTP::cancel(_inlineRequestId);
_inlineRequestId = 0;
_inlineQuery = _inlineNextQuery = _inlineNextOffset = QString();
_inlineBot = 0;
_inlineBot = nullptr;
for (InlineCache::const_iterator i = _inlineCache.cbegin(), e = _inlineCache.cend(); i != e; ++i) {
delete i.value();
}