2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

improved rpcClear() when deleting a complex RPCSender, clearing recent inline bots on logout

This commit is contained in:
John Preston
2016-02-28 15:36:23 +03:00
parent 798f800913
commit b678913da5
18 changed files with 74 additions and 46 deletions

View File

@@ -1203,7 +1203,7 @@ bool DocumentData::loaded(bool check) const {
if (loading() && _loader->done()) {
if (_loader->fileType() == mtpc_storage_fileUnknown) {
_loader->deleteLater();
_loader->rpcInvalidate();
_loader->rpcClear();
_loader = CancelledMtpFileLoader;
} else {
DocumentData *that = const_cast<DocumentData*>(this);
@@ -1214,7 +1214,7 @@ bool DocumentData::loaded(bool check) const {
}
_loader->deleteLater();
_loader->rpcInvalidate();
_loader->rpcClear();
_loader = 0;
}
notifyLayoutChanged();
@@ -1296,7 +1296,7 @@ void DocumentData::cancel() {
if (l) {
l->cancel();
l->deleteLater();
l->rpcInvalidate();
l->rpcClear();
notifyLayoutChanged();
}