aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/room.cpp b/room.cpp
index 5aea6ff0..ae341e1b 100644
--- a/room.cpp
+++ b/room.cpp
@@ -535,9 +535,15 @@ void Room::updateData(SyncRoomData& data)
}
}
-void Room::postMessage(QString type, QString content)
+void Room::postMessage(const QString& type, const QString& plainText)
{
- connection()->callApi<PostMessageJob>(id(), type, content);
+ connection()->callApi<PostMessageJob>(id(), type, plainText);
+}
+
+void Room::postMessage(const QString& type, const QString& plainText,
+ const QString& richText)
+{
+ connection()->callApi<PostMessageJob>(id(), type, plainText, richText);
}
void Room::getPreviousContent(int limit)