useSignerStream -> useBunker
This commit is contained in:
parent
6788be671e
commit
f67abaa3cd
|
@ -11,7 +11,7 @@ const secretStorageKey = 'soapbox:nip46:secret';
|
|||
|
||||
sessionStorage.setItem(secretStorageKey, crypto.randomUUID());
|
||||
|
||||
function useSignerStream() {
|
||||
function useBunker() {
|
||||
const { relay } = useNostr();
|
||||
|
||||
const [isSubscribed, setIsSubscribed] = useState(false);
|
||||
|
@ -88,4 +88,4 @@ function useSignerStream() {
|
|||
};
|
||||
}
|
||||
|
||||
export { useSignerStream };
|
||||
export { useBunker };
|
|
@ -3,7 +3,7 @@ import { IntlProvider } from 'react-intl';
|
|||
|
||||
import { fetchMe } from 'soapbox/actions/me';
|
||||
import { loadSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||
import { useSignerStream } from 'soapbox/api/hooks/nostr/useSignerStream';
|
||||
import { useBunker } from 'soapbox/api/hooks/nostr/useBunker';
|
||||
import LoadingScreen from 'soapbox/components/loading-screen';
|
||||
import { useNostr } from 'soapbox/contexts/nostr-context';
|
||||
import {
|
||||
|
@ -45,7 +45,7 @@ const SoapboxLoad: React.FC<ISoapboxLoad> = ({ children }) => {
|
|||
const [isLoaded, setIsLoaded] = useState(false);
|
||||
|
||||
const { hasNostr, isRelayOpen, signer } = useNostr();
|
||||
const { isSubscribed } = useSignerStream();
|
||||
const { isSubscribed } = useBunker();
|
||||
|
||||
const nostrLoading = Boolean(hasNostr && signer && (!isRelayOpen || !isSubscribed));
|
||||
|
||||
|
|
Loading…
Reference in New Issue