Load stickers properly

This fixes stickers not loading, similar to the patch at
0cc14f710d
This commit is contained in:
Akseli Lahtinen
2025-05-19 20:48:24 +03:00
parent 9c4dce53b2
commit bfa1f9f053

View File

@@ -121,7 +121,7 @@ QVariant MessageModel::data(const QModelIndex &idx, int role) const
}
if (role == ContentModelRole) {
if (event->get().is<EncryptedEvent>()) {
if (event->get().is<EncryptedEvent>() || event->get().is<StickerEvent>()) {
return QVariant::fromValue<MessageContentModel *>(m_room->contentModelForEvent(event->get().id()));
}