summary refs log tree commit diff
path: root/src/RoomState.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-25 14:34:15 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-25 14:34:15 +0200
commit0e91dae9223a0b82085e28c42483122681106100 (patch)
tree8d9e189898eb35abedbe126468248fe725617f31 /src/RoomState.cc
parentResize text input vertically to fit the contents (diff)
downloadnheko-0e91dae9223a0b82085e28c42483122681106100.tar.xz
Erase items using the key
Diffstat (limited to 'src/RoomState.cc')
-rw-r--r--src/RoomState.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RoomState.cc b/src/RoomState.cc
index 2bfea173..afd887ad 100644
--- a/src/RoomState.cc
+++ b/src/RoomState.cc
@@ -157,7 +157,7 @@ RoomState::update(const RoomState &state)
                 }
 
                 if (membershipState == mtx::events::state::Membership::Leave)
-                        this->memberships.erase(this->memberships.find(it->first));
+                        this->memberships.erase(it->first);
                 else
                         this->memberships.emplace(it->first, it->second);
         }