forked from mystiq/hydrogen-web
give e2ee account values a prefix so we can prevent from clearing them
This commit is contained in:
parent
d24be7ee55
commit
3ab5a72221
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@ limitations under the License.
|
||||||
|
|
||||||
import anotherjson from "../../../lib/another-json/index.js";
|
import anotherjson from "../../../lib/another-json/index.js";
|
||||||
|
|
||||||
const ACCOUNT_SESSION_KEY = "olmAccount";
|
// use common prefix so it's easy to clear properties that are not e2ee related during session clear
|
||||||
const DEVICE_KEY_FLAG_SESSION_KEY = "areDeviceKeysUploaded";
|
export const SESSION_KEY_PREFIX = "e2ee:";
|
||||||
|
const ACCOUNT_SESSION_KEY = SESSION_KEY_PREFIX + "olmAccount";
|
||||||
|
const DEVICE_KEY_FLAG_SESSION_KEY = SESSION_KEY_PREFIX + "areDeviceKeysUploaded";
|
||||||
const OLM_ALGORITHM = "m.olm.v1.curve25519-aes-sha2";
|
const OLM_ALGORITHM = "m.olm.v1.curve25519-aes-sha2";
|
||||||
const MEGOLM_ALGORITHM = "m.megolm.v1.aes-sha2";
|
const MEGOLM_ALGORITHM = "m.megolm.v1.aes-sha2";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue