From 9a6a06a4ac4cb52de37306dd8c9dcea6e00e6531 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 31 Oct 2016 19:40:33 +0900 Subject: Receipt: eventId is extraneous inside the receipt, since receipts are associated with Event objects anyway --- events/receiptevent.cpp | 2 +- events/receiptevent.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/events/receiptevent.cpp b/events/receiptevent.cpp index a4963cc8..74e89ba2 100644 --- a/events/receiptevent.cpp +++ b/events/receiptevent.cpp @@ -81,7 +81,7 @@ ReceiptEvent* ReceiptEvent::fromJson(const QJsonObject& obj) { const QJsonObject user = reads[userId].toObject(); const QDateTime time = QDateTime::fromMSecsSinceEpoch( (quint64) user["ts"].toDouble(), Qt::UTC ); - receipts.push_back({ eventId, userId, time }); + receipts.push_back({ userId, time }); } e->d->eventToReceipts.insert(eventId, receipts); } diff --git a/events/receiptevent.h b/events/receiptevent.h index cf08fed9..add5e20f 100644 --- a/events/receiptevent.h +++ b/events/receiptevent.h @@ -28,7 +28,6 @@ namespace QMatrixClient class Receipt { public: - QString eventId; QString userId; QDateTime timestamp; }; -- cgit v1.2.3