diff options
Diffstat (limited to 'events')
-rw-r--r-- | events/roommessageevent.cpp | 11 | ||||
-rw-r--r-- | events/roommessageevent.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp index a111ef12..f02922b5 100644 --- a/events/roommessageevent.cpp +++ b/events/roommessageevent.cpp @@ -19,7 +19,6 @@ #include "roommessageevent.h" #include <QtCore/QJsonObject> -#include <QtCore/QDateTime> #include <QtCore/QDebug> using namespace QMatrixClient; @@ -32,7 +31,6 @@ class RoomMessageEvent::Private QString userId; MessageEventType msgtype; QString plainBody; - QDateTime hsob_ts; MessageEventContent::Base* content; }; @@ -68,11 +66,6 @@ QString RoomMessageEvent::body() const return plainBody(); } -QDateTime RoomMessageEvent::hsob_ts() const -{ - return d->hsob_ts; -} - MessageEventContent::Base* RoomMessageEvent::content() const { return d->content; @@ -189,10 +182,6 @@ RoomMessageEvent* RoomMessageEvent::fromJson(const QJsonObject& obj) } else { qDebug() << "RoomMessageEvent: body not found"; } -// e->d->hsob_ts = QDateTime::fromMSecsSinceEpoch( content.value("hsoc_ts").toInt() ); -// } else { -// qDebug() << "RoomMessageEvent: hsoc_ts not found"; -// } } return e; } diff --git a/events/roommessageevent.h b/events/roommessageevent.h index 27cf5fd8..af3b6797 100644 --- a/events/roommessageevent.h +++ b/events/roommessageevent.h @@ -54,8 +54,6 @@ namespace QMatrixClient */ QString body() const; - QDateTime hsob_ts() const; - MessageEventContent::Base* content() const; static RoomMessageEvent* fromJson( const QJsonObject& obj ); |