feat: use negentropy (#182)

* feat: use negentropy

* chore: polish
This commit is contained in:
雨宮蓮
2024-04-24 10:18:51 +07:00
committed by GitHub
parent 174a3cc74e
commit f027eae52d
10 changed files with 121 additions and 133 deletions

View File

@@ -122,15 +122,15 @@ export class Ark {
}
}
public async get_events_from(id: string, limit: number, asOf?: number) {
public async get_events_from(pubkey: string, limit: number, asOf?: number) {
try {
let until: string = undefined;
if (asOf && asOf > 0) until = asOf.toString();
const nostrEvents: Event[] = await invoke("get_events_from", {
id,
public_key: pubkey,
limit,
until,
as_of: until,
});
return nostrEvents.sort((a, b) => b.created_at - a.created_at);

View File

@@ -11,7 +11,7 @@ export function ColumnContent({
return (
<div
className={cn(
"flex-1 overflow-y-auto overflow-x-hidden scrollbar-none",
"relative flex-1 overflow-y-auto overflow-x-hidden scrollbar-none",
className,
)}
>