updated create channel modal

This commit is contained in:
Ren Amamiya
2023-04-23 15:10:07 +07:00
parent 97c45a8c8f
commit 340e453b3e
5 changed files with 95 additions and 49 deletions

View File

@@ -1,9 +0,0 @@
import NewsfeedLayout from '@components/layouts/newsfeed';
export function Page() {
return (
<NewsfeedLayout>
<h1>TODO</h1>
</NewsfeedLayout>
);
}

View File

@@ -2,7 +2,6 @@ import { RelayContext } from '@components/relaysProvider';
import { dateToUnix, hoursAgo } from '@utils/getDate';
import {
countTotalChannels,
countTotalNotes,
createChannel,
createChat,
@@ -30,7 +29,6 @@ export function Page() {
async (account: { id: number; pubkey: string; chats: string[] }, tags: any) => {
const lastLogin = await getLastLogin();
const notes = await countTotalNotes();
const channels = await countTotalChannels();
const chats = account.chats?.length || 0;
const follows = JSON.parse(tags);
@@ -64,6 +62,7 @@ export function Page() {
});
}
// kind 40 (channels) query
/*
if (channels.total === 0) {
query.push({
kinds: [40],
@@ -71,6 +70,7 @@ export function Page() {
until: dateToUnix(now.current),
});
}
*/
// subscribe relays
const unsubscribe = pool.subscribe(
query,