aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--events/event.cpp2
-rw-r--r--events/event.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/events/event.cpp b/events/event.cpp
index 354aed03..1e2d89f2 100644
--- a/events/event.cpp
+++ b/events/event.cpp
@@ -87,9 +87,9 @@ RoomEvent::RoomEvent(Event::Type type) : Event(type) { }
RoomEvent::RoomEvent(Type type, const QJsonObject& rep)
: Event(type, rep), _id(rep["event_id"].toString())
, _roomId(rep["room_id"].toString())
+ , _senderId(rep["sender"].toString())
, _serverTimestamp(
QMatrixClient::fromJson<QDateTime>(rep["origin_server_ts"]))
- , _senderId(rep["sender"].toString())
{
// if (_id.isEmpty())
// {
diff --git a/events/event.h b/events/event.h
index 62d9c23b..fa8a58af 100644
--- a/events/event.h
+++ b/events/event.h
@@ -162,9 +162,9 @@ namespace QMatrixClient
private:
QString _id;
- QDateTime _serverTimestamp;
QString _roomId;
QString _senderId;
+ QDateTime _serverTimestamp;
QScopedPointer<RedactionEvent> _redactedBecause;
QString _txnId;
};