Don't sync storage when discovering deleted links during restore
This commit is contained in:
parent
ad1a5cbcb0
commit
e5d03edea1
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,6 @@ import { jobQueueDatabaseStore } from './JobQueueDatabaseStore';
|
||||||
import { DAY, SECOND } from '../util/durations';
|
import { DAY, SECOND } from '../util/durations';
|
||||||
import { commonShouldJobContinue } from './helpers/commonShouldJobContinue';
|
import { commonShouldJobContinue } from './helpers/commonShouldJobContinue';
|
||||||
import { DataReader, DataWriter } from '../sql/Client';
|
import { DataReader, DataWriter } from '../sql/Client';
|
||||||
import { storageServiceUploadJob } from '../services/storage';
|
|
||||||
import type { CallLinkType } from '../types/CallLink';
|
import type { CallLinkType } from '../types/CallLink';
|
||||||
import { calling } from '../services/calling';
|
import { calling } from '../services/calling';
|
||||||
import { sleeper } from '../util/sleeper';
|
import { sleeper } from '../util/sleeper';
|
||||||
|
@ -94,10 +93,11 @@ export class CallLinkRefreshJobQueue extends JobQueue<CallLinkRefreshJobData> {
|
||||||
log.info(
|
log.info(
|
||||||
`${logId}: Call link not found on server, deleting local call link`
|
`${logId}: Call link not found on server, deleting local call link`
|
||||||
);
|
);
|
||||||
|
// This will leave a storage service record, and it's up to primary to delete it
|
||||||
await DataWriter.beginDeleteCallLink(roomId, {
|
await DataWriter.beginDeleteCallLink(roomId, {
|
||||||
storageNeedsSync: true,
|
storageNeedsSync: false,
|
||||||
});
|
});
|
||||||
storageServiceUploadJob();
|
await DataWriter.finalizeDeleteCallLink(roomId);
|
||||||
window.reduxActions.calling.handleCallLinkDelete({ roomId });
|
window.reduxActions.calling.handleCallLinkDelete({ roomId });
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in a new issue