aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-06 21:58:41 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-06 23:09:41 +0900
commit4e521ae29a55deaab2ca9d62cddd3791015c6cfb (patch)
tree09c992a899200380daa217e712e638ef5b2b2637 /lib/events
parent717f3bc6c91b14905f222e094e439b4cdcdab2c8 (diff)
downloadlibquotient-4e521ae29a55deaab2ca9d62cddd3791015c6cfb.tar.gz
libquotient-4e521ae29a55deaab2ca9d62cddd3791015c6cfb.zip
EncryptionEvent: Adjust upon merge from master
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/encryptionevent.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index 6a4a1c67..b9e108f0 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -56,8 +56,10 @@ namespace QMatrixClient
explicit EncryptionEvent(const QJsonObject& obj = {}) // TODO: apropriate default value
: StateEvent(typeId(), obj)
{ }
- EncryptionEvent(EncryptionEventContent&& c)
- : StateEvent(typeId(), matrixTypeId(), c)
+ template <typename... ArgTs>
+ EncryptionEvent(ArgTs&&... contentArgs)
+ : StateEvent(typeId(), matrixTypeId(), QString(),
+ std::forward<ArgTs>(contentArgs)...)
{ }
EncryptionType encryption() const { return content().encryption; }