You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-05 17:02:07 +03:00
Remove unused stuff & comments
This commit is contained in:
@@ -33,8 +33,6 @@ function makeOlmDevice() {
|
|||||||
const sessionStore = new WebStorageSessionStore(mockStorage);
|
const sessionStore = new WebStorageSessionStore(mockStorage);
|
||||||
const cryptoStore = new MemoryCryptoStore(mockStorage);
|
const cryptoStore = new MemoryCryptoStore(mockStorage);
|
||||||
const olmDevice = new OlmDevice(sessionStore, cryptoStore);
|
const olmDevice = new OlmDevice(sessionStore, cryptoStore);
|
||||||
// expose for tests
|
|
||||||
olmDevice.__cryptoStore = cryptoStore;
|
|
||||||
return olmDevice;
|
return olmDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,8 +70,6 @@ describe("OlmDecryption", function() {
|
|||||||
describe('olm', function() {
|
describe('olm', function() {
|
||||||
it("can decrypt messages", async function() {
|
it("can decrypt messages", async function() {
|
||||||
const sid = await setupSession(aliceOlmDevice, bobOlmDevice);
|
const sid = await setupSession(aliceOlmDevice, bobOlmDevice);
|
||||||
//console.log("alice id key: " + aliceOlmDevice.deviceCurve25519Key);
|
|
||||||
//console.log("bob id key: " + bobOlmDevice.deviceCurve25519Key);
|
|
||||||
|
|
||||||
const ciphertext = await aliceOlmDevice.encryptMessage(
|
const ciphertext = await aliceOlmDevice.encryptMessage(
|
||||||
bobOlmDevice.deviceCurve25519Key,
|
bobOlmDevice.deviceCurve25519Key,
|
||||||
|
|||||||
Reference in New Issue
Block a user