summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-11 23:00:29 -0500
committerKit La Touche <kit@transneptune.net>2024-11-11 23:00:29 -0500
commite1cde26d8dc7342ee002eb02d9448c54905ec67c (patch)
tree3c7347f7a253e669f29f7a8116ab4ad9f882518a /ui/lib/apiServer.js
parenta547bf3506b822d5ff4c1f1c6c4a15c63dd2d90e (diff)
parenta0fc6434cb1f65b558a0a94c5cdddf5d79d15206 (diff)
Merge branch 'main' into wip/stylize
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`, {});
}