diff options
author | Elvis Angelaccio <elvis.angelaccio@kde.org> | 2017-04-19 12:55:19 +0200 |
---|---|---|
committer | Elvis Angelaccio <elvis.angelaccio@kde.org> | 2017-04-19 12:55:19 +0200 |
commit | d3a6b34ba7fbe4175a8aaec030cd12f69ba38dfe (patch) | |
tree | aa0bb2bc88f7201f351b41eb147e9c4ee4defcee | |
parent | a54109c57bdbdd7ad51c69a847c0ed3428df717b (diff) | |
download | libquotient-d3a6b34ba7fbe4175a8aaec030cd12f69ba38dfe.tar.gz libquotient-d3a6b34ba7fbe4175a8aaec030cd12f69ba38dfe.zip |
Don't discard avatars as well
Same workaround as in commit 836f35dc7d, but this time also for avatars.
-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(); |