diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-04-20 02:56:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 02:56:18 +0900 |
commit | 9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e (patch) | |
tree | 5cdecf0bf5d1be385049e55f1a12d9f8f3070ada | |
parent | 3301173ed41b925e0dda09c9ba19bd3d4e027962 (diff) | |
parent | d3a6b34ba7fbe4175a8aaec030cd12f69ba38dfe (diff) | |
download | libquotient-9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e.tar.gz libquotient-9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e.zip |
Merge pull request #60 from elvisangelaccio/dont-discard-avatars
Don't discard avatars as well
-rw-r--r-- | user.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -132,7 +132,10 @@ void User::processEvent(Event* event) if( event->type() == EventType::RoomMember ) { RoomMemberEvent* e = static_cast<RoomMemberEvent*>(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(); |