2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

context bot requests sent from MentionsDropdown

This commit is contained in:
John Preston
2015-12-30 01:29:24 +08:00
parent cdcd9d8d54
commit 38ea16fea4
7 changed files with 238 additions and 43 deletions

View File

@@ -3020,7 +3020,7 @@ void HistoryWidget::updateStickers() {
void HistoryWidget::notify_botCommandsChanged(UserData *user) {
if (_peer && (_peer == user || !_peer->isUser())) {
if (_attachMention.clearFilteredCommands()) {
if (_attachMention.clearFilteredBotCommands()) {
onCheckMentionDropdown();
}
}
@@ -5333,8 +5333,11 @@ void HistoryWidget::onCheckMentionDropdown() {
if (start.at(0) == '@' && _peer->isUser()) return;
if (start.at(0) == '/' && _peer->isUser() && !_peer->asUser()->botInfo) return;
_attachMention.showFiltered(_peer, start);
} else if (!_attachMention.isHidden()) {
_attachMention.hideStart();
} else {
if (!_attachMention.isHidden()) {
_attachMention.hideStart();
}
_attachMention.clearContextResults();
}
}