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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'events/receiptevent.cpp') 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); } -- cgit v1.2.3