Adapt to libQuotient API changes

This commit is contained in:
Tobias Fella
2022-09-05 20:37:55 +02:00
parent 14e57e7833
commit 2318fb95d9
3 changed files with 20 additions and 4 deletions

View File

@@ -6,7 +6,11 @@
using namespace Quotient;
StickerEvent::StickerEvent(const QJsonObject &obj)
#ifdef QUOTIENT_07
: RoomEvent(obj)
#else
: RoomEvent(typeId(), obj)
#endif
, m_imageContent(EventContent::ImageContent(obj["content"_ls].toObject()))
{
}