summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-11-30 01:53:50 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-11-30 01:54:53 +0100
commitc64887cfa86a1baeb5ac1b95198ad5108681ac57 (patch)
tree80e71517b31478f42b73eb0df863442b1bd64edc /src/Olm.cpp
parentProperly share and rotate sessions on member and device changes (diff)
downloadnheko-c64887cfa86a1baeb5ac1b95198ad5108681ac57.tar.xz
Fix shadow variable
Diffstat (limited to '')
-rw-r--r--src/Olm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp
index c2200703..91f94ccd 100644
--- a/src/Olm.cpp
+++ b/src/Olm.cpp
@@ -469,9 +469,9 @@ encrypt_group_message(const std::string &room_id, const std::string &device_id,
                 if (!group_session_data.currently.keys.count(user))
                         group_session_data.currently.keys[user] = {};
 
-                for (const auto &device_id : devices) {
-                        if (!group_session_data.currently.keys[user].devices.count(device_id))
-                                group_session_data.currently.keys[user].devices[device_id] =
+                for (const auto &device_id_ : devices) {
+                        if (!group_session_data.currently.keys[user].devices.count(device_id_))
+                                group_session_data.currently.keys[user].devices[device_id_] =
                                   group_session_data.message_index;
                 }
         }