Add 'send without verifying' to status bar
Fixes other part of https://github.com/vector-im/riot-web/issues/5936
This commit is contained in:
parent
76ce40715d
commit
4c101628b5
4 changed files with 34 additions and 14 deletions
|
@ -19,6 +19,20 @@ import sdk from './index';
|
|||
import Modal from './Modal';
|
||||
import { _t } from './languageHandler';
|
||||
|
||||
/**
|
||||
* Mark all given devices as 'known'
|
||||
*
|
||||
* @param {MatrixClient} matrixClient A MatrixClient
|
||||
* @param {Object} map from userid -> deviceid -> deviceinfo
|
||||
*/
|
||||
export function markAllDevicesKnown(matrixClient, devices) {
|
||||
Object.keys(devices).forEach((userId) => {
|
||||
Object.keys(devices[userId]).map((deviceId) => {
|
||||
matrixClient.setDeviceKnown(userId, deviceId, true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all crypto devices in a room that are marked neither known
|
||||
* nor verified.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue