diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-31 19:40:33 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-11-01 14:21:32 +0900 |
commit | 9a6a06a4ac4cb52de37306dd8c9dcea6e00e6531 (patch) | |
tree | 354a92b674f8a6c73a1ccaa92980c27faa3016f6 | |
parent | 6b0c1ee80db661a19ef4376d6663278d949715eb (diff) | |
download | libquotient-9a6a06a4ac4cb52de37306dd8c9dcea6e00e6531.tar.gz libquotient-9a6a06a4ac4cb52de37306dd8c9dcea6e00e6531.zip |
Receipt: eventId is extraneous inside the receipt, since receipts are associated with Event objects anyway
-rw-r--r-- | events/receiptevent.cpp | 2 | ||||
-rw-r--r-- | events/receiptevent.h | 1 |
2 files changed, 1 insertions, 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; }; |