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