From d3a6b34ba7fbe4175a8aaec030cd12f69ba38dfe Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Wed, 19 Apr 2017 12:55:19 +0200 Subject: Don't discard avatars as well Same workaround as in commit 836f35dc7d, but this time also for avatars. --- user.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/user.cpp b/user.cpp index 699989ac..45511f38 100644 --- a/user.cpp +++ b/user.cpp @@ -132,7 +132,10 @@ void User::processEvent(Event* event) if( event->type() == EventType::RoomMember ) { RoomMemberEvent* e = static_cast(event); - if( d->name != e->displayName() && e->membership() != MembershipType::Leave) + if (e->membership() == MembershipType::Leave) + return; + + if( d->name != e->displayName() ) { const auto oldName = d->name; d->name = e->displayName(); -- cgit v1.2.3