Adapt to behavior change in libQuotient

(cherry picked from commit 4e6850a60c)
This commit is contained in:
Tobias Fella
2024-04-30 17:05:20 +02:00
parent 2398d917f0
commit 8ef41b9c90
2 changed files with 7 additions and 2 deletions

View File

@@ -68,7 +68,8 @@ QVariant ReactionModel::data(const QModelIndex &index, int role) const
text += i18nc("Separate the usernames of users", " and ");
}
}
text += reaction.authors.at(i).toMap()[QStringLiteral("displayName")].toString();
auto displayName = reaction.authors.at(i).toMap()[QStringLiteral("displayName")].toString();
text += displayName.isEmpty() ? reaction.authors.at(i).toMap()[QStringLiteral("id")].toString() : displayName;
}
if (reaction.authors.count() > 3) {