From affe9defb5566b1c58d3fc5d381a89d2a7fff39b Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Jun 2018 16:30:00 +0300 Subject: [PATCH] Fix authorization import in FILE_MIGRATE case. Regression was introduced in dd933cf61c. --- Telegram/SourceFiles/mtproto/mtp_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mtproto/mtp_instance.cpp b/Telegram/SourceFiles/mtproto/mtp_instance.cpp index 0a06c49924b40..02884d1aa2b0a 100644 --- a/Telegram/SourceFiles/mtproto/mtp_instance.cpp +++ b/Telegram/SourceFiles/mtproto/mtp_instance.cpp @@ -880,7 +880,7 @@ void Instance::Private::registerRequest( mtpRequestId requestId, ShiftedDcId shiftedDcId) { QMutexLocker locker(&_requestByDcLock); - _requestsByDc.emplace(requestId, shiftedDcId); + _requestsByDc[requestId] = shiftedDcId; } void Instance::Private::unregisterRequest(mtpRequestId requestId) {