aboutsummaryrefslogtreecommitdiff
path: root/lib/events/reactionevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/reactionevent.h')
-rw-r--r--lib/events/reactionevent.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/events/reactionevent.h b/lib/events/reactionevent.h
index 9a6adbbd..b1e04561 100644
--- a/lib/events/reactionevent.h
+++ b/lib/events/reactionevent.h
@@ -22,8 +22,7 @@
namespace QMatrixClient {
-struct EventRelation
-{
+struct EventRelation {
using reltypeid_t = const char*;
static constexpr reltypeid_t Reply() { return "m.in_reply_to"; }
static constexpr reltypeid_t Annotation() { return "m.annotation"; }
@@ -47,14 +46,12 @@ struct EventRelation
}
};
template <>
-struct JsonObjectConverter<EventRelation>
-{
+struct JsonObjectConverter<EventRelation> {
static void dumpTo(QJsonObject& jo, const EventRelation& pod);
static void fillFrom(const QJsonObject& jo, EventRelation& pod);
};
-class ReactionEvent : public RoomEvent
-{
+class ReactionEvent : public RoomEvent {
public:
DEFINE_EVENT_TYPEID("m.reaction", ReactionEvent)
@@ -62,9 +59,7 @@ public:
: RoomEvent(typeId(), matrixTypeId(),
{ { QStringLiteral("m.relates_to"), toJson(value) } })
{}
- explicit ReactionEvent(const QJsonObject& obj)
- : RoomEvent(typeId(), obj)
- {}
+ explicit ReactionEvent(const QJsonObject& obj) : RoomEvent(typeId(), obj) {}
EventRelation relation() const
{
return content<EventRelation>(QStringLiteral("m.relates_to"));