Minor refactoring

This commit is contained in:
Tobias Fella
2026-02-21 00:26:31 +01:00
parent 502e300d5f
commit 2d0fa43f4f
3 changed files with 13 additions and 13 deletions

View File

@@ -127,8 +127,8 @@ void ReactionModel::updateReactions()
}
if (const auto &e = eventCast<const Quotient::ReactionEvent>(a)) {
reactions[e->key()].append(e->senderId());
if (e->contentJson()["shortcode"_L1].toString().length()) {
m_shortcodes[e->key()] = e->contentJson()["shortcode"_L1].toString().toHtmlEscaped();
if (e->contentPart<QString>("shortcode"_L1).length()) {
m_shortcodes[e->key()] = e->contentPart<QString>("shortcode"_L1).toHtmlEscaped();
}
}
}