diff options
Diffstat (limited to 'events/roommessageevent.h')
-rw-r--r-- | events/roommessageevent.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/events/roommessageevent.h b/events/roommessageevent.h index 219f74f0..27cf5fd8 100644 --- a/events/roommessageevent.h +++ b/events/roommessageevent.h @@ -32,11 +32,7 @@ namespace QMatrixClient namespace MessageEventContent { - class Base - { - public: - QString body; - }; + class Base { }; } class RoomMessageEvent: public Event @@ -47,7 +43,17 @@ namespace QMatrixClient QString userId() const; MessageEventType msgtype() const; + + QString plainBody() const; + + /** + * Same as plainBody() for now; might change for "best-looking body" + * in the future. For richer contents, use content-specific data. + * + * @deprecated + */ QString body() const; + QDateTime hsob_ts() const; MessageEventContent::Base* content() const; |