From 19c6560c6500304307bacf30fe05a10e54d113a9 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Fri, 7 Sep 2018 07:06:58 +0800 Subject: [PATCH] Change a typo. Fixes #46. --- src/messageeventmodel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/messageeventmodel.cpp b/src/messageeventmodel.cpp index da3f919..d7d1446 100644 --- a/src/messageeventmodel.cpp +++ b/src/messageeventmodel.cpp @@ -349,10 +349,10 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const { QString text{}; if (e.isRename()) { if (e.displayName().isEmpty()) - text = tr("cleared the display name"); + text = tr("cleared their display name"); else - text = - tr("changed the display name to %1").arg(e.displayName()); + text = tr("changed their display name to %1") + .arg(e.displayName()); } if (e.isAvatarUpdate()) { if (!text.isEmpty()) text += " and "; @@ -448,10 +448,10 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const { QString text{}; if (e.displayName() != e.prevContent()->displayName) { if (e.displayName().isEmpty()) - text = tr("cleared the display name"); + text = tr("cleared their display name"); else - text = - tr("changed the display name to %1").arg(e.displayName()); + text = tr("changed their display name to %1") + .arg(e.displayName()); } if (e.avatarUrl() != e.prevContent()->avatarUrl) { if (!text.isEmpty()) text += " and ";