summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-11 23:01:31 -0500
committerKit La Touche <kit@transneptune.net>2024-11-11 23:01:31 -0500
commitd5199183bc8114dc78adb19f66b09f1e61c67f1b (patch)
tree997a94e320aa3ade7caafa23cd01c2d653dcd331 /ui/lib/apiServer.js
parentdfca11aceffaafc105509a2800d70eb9c9bed2e7 (diff)
parenta0fc6434cb1f65b558a0a94c5cdddf5d79d15206 (diff)
Merge branch 'main' into prop/pwa
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`, {});
}