aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user.cpp3
-rw-r--r--user.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/user.cpp b/user.cpp
index 2cc81fd9..f9529db3 100644
--- a/user.cpp
+++ b/user.cpp
@@ -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() )
{
diff --git a/user.h b/user.h
index d0965ef3..33a89e0b 100644
--- a/user.h
+++ b/user.h
@@ -56,7 +56,7 @@ namespace QMatrixClient
void requestAvatar();
signals:
- void nameChanged();
+ void nameChanged(User*, QString);
void avatarChanged(User* user);
private: