aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'user.cpp')
-rw-r--r--user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index 8f0968bb..699989ac 100644
--- a/user.cpp
+++ b/user.cpp
@@ -132,7 +132,7 @@ void User::processEvent(Event* event)
if( event->type() == EventType::RoomMember )
{
RoomMemberEvent* e = static_cast<RoomMemberEvent*>(event);
- if( d->name != e->displayName() )
+ if( d->name != e->displayName() && e->membership() != MembershipType::Leave)
{
const auto oldName = d->name;
d->name = e->displayName();