diff options
Diffstat (limited to 'lib/events/typingevent.cpp')
-rw-r--r-- | lib/events/typingevent.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/events/typingevent.cpp b/lib/events/typingevent.cpp index 0c5fc6ba..e102fc79 100644 --- a/lib/events/typingevent.cpp +++ b/lib/events/typingevent.cpp @@ -18,13 +18,9 @@ #include "typingevent.h" -#include <QtCore/QJsonArray> - using namespace Quotient; -TypingEvent::TypingEvent(const QJsonObject& obj) : Event(typeId(), obj) +QStringList TypingEvent::users() const { - const auto& array = contentJson()["user_ids"_ls].toArray(); - for (const auto& user : array) - _users.push_back(user.toString()); + return fromJson<QStringList>(contentJson()["user_ids"_ls]); } |