diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-25 14:34:15 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-25 14:34:15 +0200 |
commit | 0e91dae9223a0b82085e28c42483122681106100 (patch) | |
tree | 8d9e189898eb35abedbe126468248fe725617f31 /src/RoomState.cc | |
parent | Resize text input vertically to fit the contents (diff) | |
download | nheko-0e91dae9223a0b82085e28c42483122681106100.tar.xz |
Erase items using the key
Diffstat (limited to 'src/RoomState.cc')
-rw-r--r-- | src/RoomState.cc | 2 |
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); } |