Merge branch 'td/oldusername' into 'main'

fix: send oldusername in displayname changed event

Closes #271

See merge request famedly/company/frontend/famedlysdk!977
This commit is contained in:
td 2022-03-17 15:12:15 +00:00
commit ba48ab661c
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;