mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 19:46:42 +00:00
Fix a couple bugs
This commit is contained in:
parent
bc934212db
commit
0d97800713
@ -1,6 +1,7 @@
|
|||||||
# Current
|
# Current
|
||||||
|
|
||||||
- [ ] Try lumping tables into a single key each to reduce load/save contention and time
|
- [ ] Try lumping tables into a single key each to reduce load/save contention and time
|
||||||
|
- [ ] Keep track of relays that fail to connect and don't use them
|
||||||
|
|
||||||
# Snacks
|
# Snacks
|
||||||
|
|
||||||
|
@ -213,6 +213,11 @@ const processRoutes = async events => {
|
|||||||
// Sample events so we're not burning too many resources
|
// Sample events so we're not burning too many resources
|
||||||
for (const e of ensurePlural(shuffle(events)).slice(0, 10)) {
|
for (const e of ensurePlural(shuffle(events)).slice(0, 10)) {
|
||||||
switcherFn(e.kind, {
|
switcherFn(e.kind, {
|
||||||
|
0: () => {
|
||||||
|
updates.push(
|
||||||
|
calculateRoute(e.pubkey, e.content, 'seen', 'write', e.created_at)
|
||||||
|
)
|
||||||
|
},
|
||||||
2: () => {
|
2: () => {
|
||||||
updates.push(
|
updates.push(
|
||||||
calculateRoute(e.pubkey, e.content, 'kind:2', 'read', e.created_at)
|
calculateRoute(e.pubkey, e.content, 'kind:2', 'read', e.created_at)
|
||||||
|
@ -73,10 +73,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
if (pubkey) {
|
||||||
const person = database.getPersonWithFallback(pubkey)
|
const person = database.getPersonWithFallback(pubkey)
|
||||||
|
|
||||||
input.type('@' + displayPerson(person))
|
input.type('@' + displayPerson(person))
|
||||||
input.trigger({key: 'Enter'})
|
input.trigger({key: 'Enter'})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user