mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 16:01:42 +02:00
Add jsdoc
This commit is contained in:
parent
2a01985076
commit
d6688d8f12
@ -19,6 +19,15 @@ import sdk from './index';
|
||||
import Modal from './Modal';
|
||||
import { _t } from './languageHandler';
|
||||
|
||||
/**
|
||||
* Gets all crypto devices in a room that are marked neither known
|
||||
* nor verified.
|
||||
*
|
||||
* @param {MatrixClient} matrixClient A MatrixClient
|
||||
* @param {Room} room js-sdk room object representing the room
|
||||
* @return {Promise} A promise which resolves to a map userId->deviceId->{@link
|
||||
* module:crypto~DeviceInfo|DeviceInfo}.
|
||||
*/
|
||||
export function getUnknownDevicesForRoom(matrixClient, room) {
|
||||
const roomMembers = room.getJoinedMembers().map((m) => {
|
||||
return m.userId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user