aboutsummaryrefslogtreecommitdiff
path: root/lib/events/typingevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/typingevent.cpp')
-rw-r--r--lib/events/typingevent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/events/typingevent.cpp b/lib/events/typingevent.cpp
index a4d3bae4..0d39d1be 100644
--- a/lib/events/typingevent.cpp
+++ b/lib/events/typingevent.cpp
@@ -18,15 +18,15 @@
#include "typingevent.h"
+#include <QtCore/QJsonArray>
+
using namespace QMatrixClient;
TypingEvent::TypingEvent(const QJsonObject& obj)
- : Event(Type::Typing, obj)
+ : Event(typeId(), obj)
{
- QJsonValue result;
- result= contentJson()["user_ids"];
- QJsonArray array = result.toArray();
- for( const QJsonValue& user: array )
+ const auto& array = contentJson()["user_ids"_ls].toArray();
+ for(const auto& user: array )
_users.push_back(user.toString());
}