mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Fix resending requests after new session.
This commit is contained in:
@@ -1156,7 +1156,9 @@ void Instance::Private::onSessionReset(ShiftedDcId dcWithShift) {
|
||||
|
||||
bool Instance::Private::rpcErrorOccured(mtpRequestId requestId, const RPCFailHandlerPtr &onFail, const RPCError &err) { // return true if need to clean request data
|
||||
if (isDefaultHandledError(err)) {
|
||||
if (onFail && (*onFail)(requestId, err)) return true;
|
||||
if (onFail && (*onFail)(requestId, err)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (onErrorDefault(requestId, err)) {
|
||||
|
Reference in New Issue
Block a user