Merge branch 'issue-139' into 'develop'

Change avatar update text (fixes #139)

See merge request b0/spectral!49
This commit is contained in:
Black Hat 2019-05-11 12:55:15 +00:00
commit 7557f785f5
1 changed files with 3 additions and 1 deletions

View File

@ -144,8 +144,10 @@ class SpectralRoom : public Room {
text += " and "; text += " and ";
if (e.avatarUrl().isEmpty()) if (e.avatarUrl().isEmpty())
text += tr("cleared the avatar"); text += tr("cleared the avatar");
else if (e.prevContent()->avatarUrl.isEmpty())
text += tr("set an avatar");
else else
text += tr("updated the avatar"); text += tr("updated their avatar");
} }
return text; return text;
} }