wip: polish
This commit is contained in:
@@ -86,10 +86,10 @@ export function LocalNetworkWidget() {
|
||||
// subscribe for new event
|
||||
// sub will be managed by lru-cache
|
||||
useEffect(() => {
|
||||
if (db.account && db.account.network && dbEvents.length > 0) {
|
||||
if (db.account && db.account.circles && dbEvents.length > 0) {
|
||||
const filter: NDKFilter = {
|
||||
kinds: [NDKKind.Text, NDKKind.Repost],
|
||||
authors: db.account.network,
|
||||
authors: db.account.circles,
|
||||
since: Math.floor(Date.now() / 1000),
|
||||
};
|
||||
|
||||
@@ -102,7 +102,7 @@ export function LocalNetworkWidget() {
|
||||
|
||||
return (
|
||||
<WidgetWrapper>
|
||||
<TitleBar title="Network" />
|
||||
<TitleBar id="9999" />
|
||||
<div className="flex-1">
|
||||
{status === 'loading' ? (
|
||||
<div className="px-3 py-1.5">
|
||||
|
||||
@@ -57,7 +57,7 @@ export function XfeedsWidget({ params }: { params: Widget }) {
|
||||
/>
|
||||
</div>
|
||||
<div className="flex h-[500px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-200 py-2 scrollbar-none dark:bg-neutral-800">
|
||||
{db.account.network.map((item: string) => (
|
||||
{db.account.circles.map((item: string) => (
|
||||
<button
|
||||
key={item}
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user