feat: stream forwards

This commit is contained in:
2023-12-07 22:50:15 +00:00
parent 7600d93983
commit 31b8549632
9 changed files with 141 additions and 75 deletions

View File

@ -26,7 +26,7 @@ import Copy from "./copy";
import { openFile } from "@/utils";
import { LoginType } from "@/login";
import { DefaultProvider, StreamProviderInfo } from "@/providers";
import { Nip103StreamProvider } from "@/providers/zsz";
import { NostrStreamProvider } from "@/providers/zsz";
enum Stage {
Login = 0,
@ -109,7 +109,7 @@ export function LoginSignup({ close }: { close: () => void }) {
}
async function setupProfile() {
const px = new Nip103StreamProvider(DefaultProvider.name, DefaultProvider.url, EventPublisher.privateKey(key));
const px = new NostrStreamProvider(DefaultProvider.name, DefaultProvider.url, EventPublisher.privateKey(key));
const info = await px.info();
setProviderInfo(info);