diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-07-26 09:26:19 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-07-26 09:26:19 +0200 |
commit | 176b260bfaf8f575560bfe3fb520ee3fa0ad3a7a (patch) | |
tree | 82fc4851e6a3704527756434877fbbe2dde895a4 /lib/events/eventcontent.h | |
parent | 55d8d9c073b732e296c72bc8a747bbd691931209 (diff) | |
download | libquotient-176b260bfaf8f575560bfe3fb520ee3fa0ad3a7a.tar.gz libquotient-176b260bfaf8f575560bfe3fb520ee3fa0ad3a7a.zip |
RoomAvatarEvent: add constructors from content
So that room avatar events could also be sent, not only received.
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r-- | lib/events/eventcontent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h index e7656de5..0d4c047e 100644 --- a/lib/events/eventcontent.h +++ b/lib/events/eventcontent.h @@ -214,6 +214,8 @@ namespace EventContent { template <typename InfoT> class UrlWithThumbnailContent : public UrlBasedContent<InfoT> { public: + // NB: when using inherited constructors, thumbnail has to be + // initialised separately using UrlBasedContent<InfoT>::UrlBasedContent; explicit UrlWithThumbnailContent(const QJsonObject& json) : UrlBasedContent<InfoT>(json), thumbnail(InfoT::originalInfoJson) |