You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
Log device objects for existing/new devices when sharing room keys.
This commit is contained in:
@@ -341,12 +341,15 @@ class MegolmEncryption extends EncryptionAlgorithm {
|
|||||||
await Promise.all([
|
await Promise.all([
|
||||||
(async () => {
|
(async () => {
|
||||||
// share keys with devices that we already have a session for
|
// share keys with devices that we already have a session for
|
||||||
logger.debug(`Sharing keys with existing Olm sessions in ${this.roomId}`);
|
logger.debug(`Sharing keys with existing Olm sessions in ${this.roomId}`, olmSessions);
|
||||||
await this.shareKeyWithOlmSessions(session, key, payload, olmSessions);
|
await this.shareKeyWithOlmSessions(session, key, payload, olmSessions);
|
||||||
logger.debug(`Shared keys with existing Olm sessions in ${this.roomId}`);
|
logger.debug(`Shared keys with existing Olm sessions in ${this.roomId}`);
|
||||||
})(),
|
})(),
|
||||||
(async () => {
|
(async () => {
|
||||||
logger.debug(`Sharing keys (start phase 1) with new Olm sessions in ${this.roomId}`);
|
logger.debug(
|
||||||
|
`Sharing keys (start phase 1) with new Olm sessions in ${this.roomId}`,
|
||||||
|
devicesWithoutSession
|
||||||
|
);
|
||||||
const errorDevices = [];
|
const errorDevices = [];
|
||||||
|
|
||||||
// meanwhile, establish olm sessions for devices that we don't
|
// meanwhile, establish olm sessions for devices that we don't
|
||||||
|
|||||||
Reference in New Issue
Block a user