You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
More doc
This commit is contained in:
@@ -51,6 +51,14 @@ export function getUnknownDevicesForRoom(matrixClient, room) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the UnknownDeviceDialog for a given room. The dialog will inform the user
|
||||||
|
* that messages they sent to this room have not been sent due to unknown devices
|
||||||
|
* being present.
|
||||||
|
*
|
||||||
|
* @param {MatrixClient} matrixClient A MatrixClient
|
||||||
|
* @param {Room} room js-sdk room object representing the room
|
||||||
|
*/
|
||||||
export function showUnknownDeviceDialogForMessages(matrixClient, room) {
|
export function showUnknownDeviceDialogForMessages(matrixClient, room) {
|
||||||
getUnknownDevicesForRoom(matrixClient, room).then((unknownDevices) => {
|
getUnknownDevicesForRoom(matrixClient, room).then((unknownDevices) => {
|
||||||
const onSendClicked = () => {
|
const onSendClicked = () => {
|
||||||
@@ -68,6 +76,14 @@ export function showUnknownDeviceDialogForMessages(matrixClient, room) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the UnknownDeviceDialog for a given room. The dialog will inform the user
|
||||||
|
* that a call they tried to place or answer in the room couldn't be placed or
|
||||||
|
* answered due to unknown devices being present.
|
||||||
|
*
|
||||||
|
* @param {MatrixClient} matrixClient A MatrixClient
|
||||||
|
* @param {Room} room js-sdk room object representing the room
|
||||||
|
*/
|
||||||
export function showUnknownDeviceDialogForCalls(matrixClient, room, sendAnyway, sendAnywayLabel, sendLabel) {
|
export function showUnknownDeviceDialogForCalls(matrixClient, room, sendAnyway, sendAnywayLabel, sendLabel) {
|
||||||
getUnknownDevicesForRoom(matrixClient, room).then((unknownDevices) => {
|
getUnknownDevicesForRoom(matrixClient, room).then((unknownDevices) => {
|
||||||
const UnknownDeviceDialog = sdk.getComponent('dialogs.UnknownDeviceDialog');
|
const UnknownDeviceDialog = sdk.getComponent('dialogs.UnknownDeviceDialog');
|
||||||
|
|||||||
Reference in New Issue
Block a user