aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 06a0a380..b4d0f47c 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1076,6 +1076,14 @@ void Room::postMessage(const QString& plainText, MessageEventType type)
postMessage(RoomMessageEvent { plainText, type });
}
+void Room::postHtmlMessage(const QString& plainText, const QString& htmlText,
+ MessageEventType type)
+{
+ postMessage(RoomMessageEvent { plainText, type,
+ new EventContent::TextContent(htmlText, QStringLiteral("text/html")) });
+
+}
+
void Room::postMessage(const RoomMessageEvent& event)
{
if (usesEncryption())