File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,19 @@ Please see LICENSE in the repository root for full details.
77
88import { useEffect , useMemo } from "react" ;
99
10- import { setLocalStorageItem , useLocalStorage } from "../useLocalStorage" ;
10+ import {
11+ setLocalStorageItemReactive ,
12+ useLocalStorage ,
13+ } from "../useLocalStorage" ;
1114import { type UrlParams , getUrlParams , useUrlParams } from "../UrlParams" ;
1215import { E2eeType } from "./e2eeType" ;
1316import { useClient } from "../ClientContext" ;
1417
1518export function saveKeyForRoom ( roomId : string , password : string ) : void {
16- setLocalStorageItem ( getRoomSharedKeyLocalStorageKey ( roomId ) , password ) ;
19+ setLocalStorageItemReactive (
20+ getRoomSharedKeyLocalStorageKey ( roomId ) ,
21+ password ,
22+ ) ;
1723}
1824
1925const getRoomSharedKeyLocalStorageKey = ( roomId : string ) : string =>
You can’t perform that action at this time.
0 commit comments