diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-14 22:34:41 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-14 22:34:41 +0100 |
commit | c919c021be42228ff615e581a2f80e649c992807 (patch) | |
tree | 87f290b8a47ee0c206a3fb461bb2406a93a140be /lib/events/stateevent.h | |
parent | 8f4c7f67930be402836ca7a6266ba4277266a12d (diff) | |
download | libquotient-c919c021be42228ff615e581a2f80e649c992807.tar.gz libquotient-c919c021be42228ff615e581a2f80e649c992807.zip |
Cleanup
Diffstat (limited to 'lib/events/stateevent.h')
-rw-r--r-- | lib/events/stateevent.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/events/stateevent.h b/lib/events/stateevent.h index 710b4271..400858db 100644 --- a/lib/events/stateevent.h +++ b/lib/events/stateevent.h @@ -23,12 +23,11 @@ namespace Quotient { /// Make a minimal correct Matrix state event JSON -template <typename StrT> -inline QJsonObject basicStateEventJson(StrT matrixType, +inline QJsonObject basicStateEventJson(const QString& matrixTypeId, const QJsonObject& content, const QString& stateKey = {}) { - return { { TypeKey, std::forward<StrT>(matrixType) }, + return { { TypeKey, matrixTypeId }, { StateKeyKey, stateKey }, { ContentKey, content } }; } |