2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Various fixes.

This commit is contained in:
John Preston
2017-11-16 11:45:55 +04:00
parent 5a159d0204
commit 131efa11be
10 changed files with 33 additions and 13 deletions

View File

@@ -675,7 +675,7 @@ bool MainWidget::onShareUrl(const PeerId &peer, const QString &url, const QStrin
bool MainWidget::onInlineSwitchChosen(const PeerId &peer, const QString &botAndQuery) {
PeerData *p = App::peer(peer);
if (!peer || p->canWrite()) {
if (!peer || !p->canWrite()) {
Ui::show(Box<InformBox>(lang(lng_inline_switch_cant)));
return false;
}