diff options
-rw-r--r-- | user.cpp | 3 | ||||
-rw-r--r-- | user.h | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -114,8 +114,9 @@ void User::processEvent(Event* event) RoomMemberEvent* e = static_cast<RoomMemberEvent*>(event); if( d->name != e->displayName() ) { + const auto oldName = d->name; d->name = e->displayName(); - emit nameChanged(); + emit nameChanged(this, oldName); } if( d->avatarUrl != e->avatarUrl() ) { @@ -56,7 +56,7 @@ namespace QMatrixClient void requestAvatar(); signals: - void nameChanged(); + void nameChanged(User*, QString); void avatarChanged(User* user); private: |