From fac28bac1a704f04acf014536d050cb3820d41a0 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 18 Dec 2020 04:42:24 +0100 Subject: [PATCH] Another shadowed variable --- src/Olm.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Olm.cpp b/src/Olm.cpp index 67006490..07fc49f6 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp @@ -270,9 +270,10 @@ handle_olm_message(const OlmMessage &msg) } else if (auto roomKey = std::get_if>(&device_event)) { create_inbound_megolm_session(*roomKey, msg.sender_key); - } else if (auto roomKey = std::get_if>( - &device_event)) { - import_inbound_megolm_session(*roomKey); + } else if (auto forwardedRoomKey = + std::get_if>( + &device_event)) { + import_inbound_megolm_session(*forwardedRoomKey); } else if (auto e = std::get_if>(&device_event)) { auto local_user = http::client()->user_id();