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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user