diff options
author | Roland Pallai <dap78@magex.hu> | 2020-02-10 17:25:42 +0100 |
---|---|---|
committer | Roland Pallai <dap78@magex.hu> | 2020-02-10 17:25:42 +0100 |
commit | 14df474a5032554faf575f8becbac4c9f2bec3e5 (patch) | |
tree | 4b8bb60ce3346ee566dc1fb7ca9193991e5e45d3 /lib/events/roommessageevent.h | |
parent | 1c3373484b96fb8bc855f02caa87bad7567c5e17 (diff) | |
download | libquotient-14df474a5032554faf575f8becbac4c9f2bec3e5.tar.gz libquotient-14df474a5032554faf575f8becbac4c9f2bec3e5.zip |
Add EventContent::replacementOf() helper
Diffstat (limited to 'lib/events/roommessageevent.h')
-rw-r--r-- | lib/events/roommessageevent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/events/roommessageevent.h b/lib/events/roommessageevent.h index ded5e572..2501d097 100644 --- a/lib/events/roommessageevent.h +++ b/lib/events/roommessageevent.h @@ -105,6 +105,10 @@ namespace EventContent { { return { RelatesTo::ReplyTypeId(), std::move(eventId) }; } + inline RelatesTo replacementOf(QString eventId) + { + return { RelatesTo::ReplacementTypeId(), std::move(eventId) }; + } /** * Rich text content for m.text, m.emote, m.notice |