Fix merge error

This commit is contained in:
Dylan 2022-08-15 18:47:19 +09:30
parent 1ba6ccc138
commit 2b048c56c2

View file

@ -108,16 +108,6 @@ function InviteUser({
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) {
if (mx.getUserId() === userId) return;
const dmRoomId = hasDMWith(userId);