Change a typo.

Fixes #46.
This commit is contained in:
Black Hat 2018-09-07 07:06:58 +08:00
parent a189927b67
commit 19c6560c65
1 changed files with 6 additions and 6 deletions

View File

@ -349,10 +349,10 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
QString text{}; QString text{};
if (e.isRename()) { if (e.isRename()) {
if (e.displayName().isEmpty()) if (e.displayName().isEmpty())
text = tr("cleared the display name"); text = tr("cleared their display name");
else else
text = text = tr("changed their display name to %1")
tr("changed the display name to %1").arg(e.displayName()); .arg(e.displayName());
} }
if (e.isAvatarUpdate()) { if (e.isAvatarUpdate()) {
if (!text.isEmpty()) text += " and "; if (!text.isEmpty()) text += " and ";
@ -448,10 +448,10 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
QString text{}; QString text{};
if (e.displayName() != e.prevContent()->displayName) { if (e.displayName() != e.prevContent()->displayName) {
if (e.displayName().isEmpty()) if (e.displayName().isEmpty())
text = tr("cleared the display name"); text = tr("cleared their display name");
else else
text = text = tr("changed their display name to %1")
tr("changed the display name to %1").arg(e.displayName()); .arg(e.displayName());
} }
if (e.avatarUrl() != e.prevContent()->avatarUrl) { if (e.avatarUrl() != e.prevContent()->avatarUrl) {
if (!text.isEmpty()) text += " and "; if (!text.isEmpty()) text += " and ";