diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-23 02:29:41 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-23 02:29:55 +0200 |
commit | d5e1475a5c9d9701d191456a577083a650941f92 (patch) | |
tree | c8f5141e4ff3aee0a7ec87c79528e3be83fd11a4 /src/Utils.cpp | |
parent | Update translations (diff) | |
download | nheko-d5e1475a5c9d9701d191456a577083a650941f92.tar.xz |
Fix encrypted messages not showing a user in the sidebar
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index 33b75894..46472401 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -179,8 +179,9 @@ utils::getMessageDescription(const TimelineEvent &event, const auto ts = QDateTime::fromMSecsSinceEpoch(msg->origin_server_ts); DescInfo info; - info.userid = sender; - info.body = QString(" %1").arg(messageDescription<Encrypted>()); + info.userid = sender; + info.body = QString(" %1").arg( + messageDescription<Encrypted>(username, "", sender == localUser)); info.timestamp = utils::descriptiveTime(ts); info.event_id = QString::fromStdString(msg->event_id); info.datetime = ts; |