This commit is contained in:
Ajay Bura 2022-05-01 20:56:30 +05:30
parent 8c227843c9
commit 3f83514427
2 changed files with 41 additions and 12 deletions

View file

@ -159,9 +159,9 @@ function DeleteKeyBackupDialog({ requestClose }) {
const [isDeleting, setIsDeleting] = useState(false);
const mx = initMatrix.matrixClient;
const mountStore = useStore();
mountStore.setItem(true);
const deleteBackup = async () => {
mountStore.setItem(true);
setIsDeleting(true);
try {
const backupInfo = await mx.getKeyBackupVersion();