Fix chat sending

This commit is contained in:
Jonathan Staab 2023-01-23 20:01:09 -08:00
parent 2d92c13613
commit c5ce8cf0d5
7 changed files with 23 additions and 20 deletions

View File

@ -45,6 +45,7 @@ If you like Coracle and want to support its development, you can donate sats via
# Bugs
- [ ] Everything waits for even the slowest relay to connect before returning events
- [ ] Alerts are not showing likes, just generally screwy. Maybe because I threadify before adding to the db?
- [ ] Sync mentions box and in-reply mentions
- [ ] Add petnames for channels

View File

@ -169,7 +169,6 @@ const subscribe = async (relays, filters) => {
})
))
return {
subs,
unsub: () => {

View File

@ -71,6 +71,8 @@ setTimeout(() => {
return false
}
event.setUser(session)
return true
})
})

View File

@ -2,7 +2,10 @@ import 'src/app.css'
import Bugsnag from "@bugsnag/js"
Bugsnag.start({apiKey: "2ea412feabfe14dc9849c6f0b4fa7003"})
Bugsnag.start({
apiKey: "2ea412feabfe14dc9849c6f0b4fa7003",
collectUserIp: false,
})
import App from 'src/App.svelte'

View File

@ -17,7 +17,7 @@
{/if}
{#if size === '2xl'}
<div {...$$props} class={cx($$props.class, className, "py-8 p-4 max-w-2xl")}>
<div {...$$props} class={cx($$props.class, className, "p-4 lg:py-8 max-w-2xl")}>
<slot />
</div>
{/if}

View File

@ -46,21 +46,19 @@
})
</script>
<Content>
{#if newNotes.length > 0}
<div
in:slide
class="cursor-pointer text-center underline text-light"
on:click={showNewNotes}>
Load {quantify(newNotes.length, 'new note')}
</div>
{/if}
{#if newNotes.length > 0}
<div
in:slide
class="cursor-pointer text-center underline text-light"
on:click={showNewNotes}>
Load {quantify(newNotes.length, 'new note')}
</div>
{/if}
<div>
{#each notes as note (note.id)}
<Note {note} {depth} />
{/each}
</div>
<div>
{#each notes as note (note.id)}
<Note {note} {depth} />
{/each}
</div>
<Spinner />
</Content>
<Spinner />

View File

@ -60,7 +60,7 @@
}
const sendMessage = content =>
cmd.createChannelMessage(getRelays(), roomId, content)
cmd.createChatMessage(getRelays(), roomId, content)
</script>
<Channel