Further improvements for backup import/export

This commit is contained in:
Fedor Indutny 2024-09-18 22:26:52 -07:00 committed by GitHub
parent b9cd858ec7
commit d5f44c1b8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 539 additions and 201 deletions

View file

@ -96,11 +96,13 @@ describe('backup/calling', () => {
callId,
peerId: CONTACT_A,
ringerId: CONTACT_A,
startedById: null,
mode: CallMode.Direct,
type: CallType.Audio,
status: DirectCallStatus.Missed,
direction: CallDirection.Incoming,
timestamp: now,
endedTimestamp: null,
};
await DataWriter.saveCallHistory(callHistory);
await loadAll();
@ -143,11 +145,13 @@ describe('backup/calling', () => {
callId,
peerId: GROUP_ID_STRING,
ringerId: CONTACT_A,
startedById: CONTACT_A,
mode: CallMode.Group,
type: CallType.Group,
status: GroupCallStatus.Declined,
direction: CallDirection.Incoming,
timestamp: now,
endedTimestamp: null,
};
await DataWriter.saveCallHistory(callHistory);
await loadAll();
@ -232,11 +236,13 @@ describe('backup/calling', () => {
callId,
peerId: callLink.roomId,
ringerId: null,
startedById: null,
mode: CallMode.Adhoc,
type: CallType.Adhoc,
status: AdhocCallStatus.Generic,
direction: CallDirection.Unknown,
timestamp: now,
endedTimestamp: null,
};
await DataWriter.saveCallHistory(callHistory);
await loadAll();
@ -256,11 +262,13 @@ describe('backup/calling', () => {
callId,
peerId: 'nonexistent',
ringerId: null,
startedById: null,
mode: CallMode.Adhoc,
type: CallType.Adhoc,
status: AdhocCallStatus.Generic,
direction: CallDirection.Unknown,
timestamp: now,
endedTimestamp: null,
};
await DataWriter.saveCallHistory(callHistory);
await loadAll();