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.
7
7
8
8
import { useEffect , useMemo } from "react" ;
9
9
10
- import { setLocalStorageItem , useLocalStorage } from "../useLocalStorage" ;
10
+ import {
11
+ setLocalStorageItemReactive ,
12
+ useLocalStorage ,
13
+ } from "../useLocalStorage" ;
11
14
import { type UrlParams , getUrlParams , useUrlParams } from "../UrlParams" ;
12
15
import { E2eeType } from "./e2eeType" ;
13
16
import { useClient } from "../ClientContext" ;
14
17
15
18
export function saveKeyForRoom ( roomId : string , password : string ) : void {
16
- setLocalStorageItem ( getRoomSharedKeyLocalStorageKey ( roomId ) , password ) ;
19
+ setLocalStorageItemReactive (
20
+ getRoomSharedKeyLocalStorageKey ( roomId ) ,
21
+ password ,
22
+ ) ;
17
23
}
18
24
19
25
const getRoomSharedKeyLocalStorageKey = ( roomId : string ) : string =>
You can’t perform that action at this time.
0 commit comments