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

Version 0.10.13.alpha: crash fix in custom notifications.

Not sending inline bot request drafts to server by timeout.
This commit is contained in:
John Preston
2016-10-07 19:45:45 +03:00
parent 3c84899edf
commit f1d52c12ae
35 changed files with 80 additions and 90 deletions

View File

@@ -3372,7 +3372,7 @@ void HistoryWidget::writeDrafts(Data::Draft **localDraft, Data::Draft **editDraf
}
}
if (!_editMsgId) {
if (!_editMsgId && !_inlineBot) {
_saveCloudDraftTimer.start(SaveCloudDraftIdleTimeout);
}
}
@@ -5985,7 +5985,6 @@ bool HistoryWidget::hasSilentToggle() const {
void HistoryWidget::inlineBotResolveDone(const MTPcontacts_ResolvedPeer &result) {
_inlineBotResolveRequestId = 0;
// Notify::inlineBotRequesting(false);
_inlineBotUsername = QString();
UserData *resolvedBot = nullptr;
if (result.type() == mtpc_contacts_resolvedPeer) {
const auto &d(result.c_contacts_resolvedPeer());
@@ -8863,6 +8862,6 @@ bool HistoryWidget::touchScroll(const QPoint &delta) {
}
HistoryWidget::~HistoryWidget() {
deleteAndMark(_pinnedBar);
deleteAndMark(_list);
delete base::take(_pinnedBar);
delete base::take(_list);
}