summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-12 09:29:07 -0500
committerKit La Touche <kit@transneptune.net>2024-11-12 09:29:07 -0500
commita0007f8ea6a758212b216f788c759e2abb102ab1 (patch)
treed303ba2e0aaeee34d4445aa66bb0ff383c759e49 /ui/lib/apiServer.js
parent24eb775ba77f5a6a78a299d9fdffb34f8f167f8d (diff)
parent2fb328089f01776e5bb553a1d50a061396588c8c (diff)
Merge branch 'main' into wip/touch-events
Diffstat (limited to 'ui/lib/apiServer.js')
-rw-r--r--ui/lib/apiServer.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js
index 6ada0f7..fee1a81 100644
--- a/ui/lib/apiServer.js
+++ b/ui/lib/apiServer.js
@@ -34,6 +34,10 @@ export async function postToChannel(channelId, body) {
return apiServer.post(`/channels/${channelId}`, { body });
}
+export async function deleteMessage(messageId) {
+ return apiServer.delete(`/messages/${messageId}`, {});
+}
+
export async function createInvite() {
return apiServer.post(`/invite`, {});
}