summaryrefslogtreecommitdiff
path: root/ui/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/apiServer.js4
-rw-r--r--ui/lib/components/CreateChannelForm.svelte2
-rw-r--r--ui/lib/components/Message.svelte1
3 files changed, 2 insertions, 5 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js
index 3714b63..e537abc 100644
--- a/ui/lib/apiServer.js
+++ b/ui/lib/apiServer.js
@@ -34,10 +34,6 @@ export async function postToChannel(channelId, body) {
return apiServer.post(`/channels/${channelId}`, { body });
}
-export async function deleteMessage(messageId) {
- // TODO
-}
-
export async function createInvite() {
return apiServer.post(`/invite`, {});
}
diff --git a/ui/lib/components/CreateChannelForm.svelte b/ui/lib/components/CreateChannelForm.svelte
index 6b50fb1..6eee5db 100644
--- a/ui/lib/components/CreateChannelForm.svelte
+++ b/ui/lib/components/CreateChannelForm.svelte
@@ -5,7 +5,7 @@
let pending = false;
$: disabled = pending;
- async function handleSubmit(event) {
+ async function handleSubmit() {
pending = true;
const response = await createChannel(name);
if (200 <= response.status && response.status < 300) {
diff --git a/ui/lib/components/Message.svelte b/ui/lib/components/Message.svelte
index 9376cbe..0b91b66 100644
--- a/ui/lib/components/Message.svelte
+++ b/ui/lib/components/Message.svelte
@@ -15,6 +15,7 @@
<div class="message relative">
<span class="timestamp chip variant-soft absolute top-0 right-0">{at}</span>
<section use:scroll class="py-1 message-body">
+ <!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html renderedBody}
</section>
</div>