wip: native notification
This commit is contained in:
@@ -24,7 +24,7 @@ export function Page() {
|
||||
]);
|
||||
const addMessage = useChatMessages((state: any) => state.add);
|
||||
|
||||
useSWRSubscription(account ? ["chat", pubkey] : null, ([, key]) => {
|
||||
useSWRSubscription(account && pubkey ? ["chat", pubkey] : null, ([, key]) => {
|
||||
const unsubscribe = pool.subscribe(
|
||||
[
|
||||
{
|
||||
@@ -59,6 +59,8 @@ export function Page() {
|
||||
};
|
||||
}, [pubkey]);
|
||||
|
||||
if (!account) return <div>Fuck SSR</div>;
|
||||
|
||||
return (
|
||||
<div className="h-full w-full grid grid-cols-3">
|
||||
<div className="col-span-2 flex flex-col justify-between border-r border-zinc-900">
|
||||
|
||||
Reference in New Issue
Block a user