aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommessageevent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-19 12:51:04 +0100
committerGitHub <noreply@github.com>2020-03-19 12:51:04 +0100
commit792dc5dcc8e548030f9246f20a39ef6febee3910 (patch)
treecd8bd3888f234668784c5cd486e58a4b5b4d404b /lib/events/roommessageevent.h
parent5b7bfc2d559c1707208007f2b7d5c8e898b98f7e (diff)
parent682f96d4af19226e553138b1a86ed9233c35edbd (diff)
downloadlibquotient-792dc5dcc8e548030f9246f20a39ef6febee3910.tar.gz
libquotient-792dc5dcc8e548030f9246f20a39ef6febee3910.zip
Merge pull request #376 from rpallai/editing-fixes
Simple changes for sending edits
Diffstat (limited to 'lib/events/roommessageevent.h')
-rw-r--r--lib/events/roommessageevent.h4
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