diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-11-30 01:53:50 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-11-30 01:54:53 +0100 |
commit | c64887cfa86a1baeb5ac1b95198ad5108681ac57 (patch) | |
tree | 80e71517b31478f42b73eb0df863442b1bd64edc /src/Olm.cpp | |
parent | Properly share and rotate sessions on member and device changes (diff) | |
download | nheko-c64887cfa86a1baeb5ac1b95198ad5108681ac57.tar.xz |
Fix shadow variable
Diffstat (limited to '')
-rw-r--r-- | src/Olm.cpp | 6 |
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; } } |