Fix merge error
This commit is contained in:
parent
1ba6ccc138
commit
2b048c56c2
1 changed files with 0 additions and 10 deletions
|
@ -108,16 +108,6 @@ function InviteUser({
|
||||||
updateIsSearching(false);
|
updateIsSearching(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function hasDevices(userId) {
|
|
||||||
try {
|
|
||||||
const usersDeviceMap = await mx.downloadKeys([userId, mx.getUserId()]);
|
|
||||||
return Object.values(usersDeviceMap).every((userDevices) => Object.keys(userDevices).length > 0);
|
|
||||||
} catch (e) {
|
|
||||||
console.error("Error determining if it's possible to encrypt to all users: ", e);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function createDM(userId) {
|
async function createDM(userId) {
|
||||||
if (mx.getUserId() === userId) return;
|
if (mx.getUserId() === userId) return;
|
||||||
const dmRoomId = hasDMWith(userId);
|
const dmRoomId = hasDMWith(userId);
|
||||||
|
|
Loading…
Reference in a new issue