mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Version 0.10.20: don't allow the share url start with an inline bot.
This commit is contained in:
@@ -722,6 +722,10 @@ void MainWidget::shareContactLayer(UserData *contact) {
|
||||
}
|
||||
|
||||
void MainWidget::shareUrlLayer(const QString &url, const QString &text) {
|
||||
// Don't allow to insert an inline bot query by share url link.
|
||||
if (url.trimmed().startsWith('@')) {
|
||||
return;
|
||||
}
|
||||
hiderLayer(new HistoryHider(this, url, text));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user