fix: send oldusername in displayname changed event

This commit is contained in:
Techno-Disaster 2022-03-17 18:51:26 +05:30
parent 62780b5b2f
commit 885da787b4
No known key found for this signature in database
GPG Key ID: F6D9E9BF14C7D103
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ abstract class EventLocalizations {
}
// Has the user displayname changed?
else if (newDisplayname != oldDisplayname && stateKey != null) {
text = i18n.changedTheDisplaynameTo(stateKey, newDisplayname);
text = i18n.changedTheDisplaynameTo(oldDisplayname, newDisplayname);
}
}
return text;