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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/events/typingevent.cpp b/lib/events/typingevent.cpp
index 0c5fc6ba..a95d2f0d 100644
--- a/lib/events/typingevent.cpp
+++ b/lib/events/typingevent.cpp
@@ -25,6 +25,7 @@ using namespace Quotient;
TypingEvent::TypingEvent(const QJsonObject& obj) : Event(typeId(), obj)
{
const auto& array = contentJson()["user_ids"_ls].toArray();
+ _users.reserve(array.size());
for (const auto& user : array)
_users.push_back(user.toString());
}