diff options
Diffstat (limited to 'user.cpp')
-rw-r--r-- | user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |