Further improvements for backup import/export
This commit is contained in:
parent
b9cd858ec7
commit
d5f44c1b8f
24 changed files with 539 additions and 201 deletions
|
@ -83,10 +83,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: conversationId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Direct,
|
||||
type: CallType.Video,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -118,10 +120,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: conversationId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Direct,
|
||||
type,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -153,10 +157,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: conversationId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Direct,
|
||||
type,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -222,10 +228,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode,
|
||||
type: CallType.Video,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -281,10 +289,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId: '1',
|
||||
peerId: conversationId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode: CallMode.Direct,
|
||||
type: CallType.Video,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp: now,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
|
||||
|
@ -316,10 +326,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: conversationId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Direct,
|
||||
type,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status,
|
||||
};
|
||||
}
|
||||
|
@ -356,10 +368,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: roomId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode: CallMode.Adhoc,
|
||||
type: CallType.Adhoc,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: AdhocCallStatus.Joined,
|
||||
};
|
||||
}
|
||||
|
@ -418,10 +432,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId: roomId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode: CallMode.Adhoc,
|
||||
type: CallType.Adhoc,
|
||||
direction: CallDirection.Outgoing,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: AdhocCallStatus.Joined,
|
||||
};
|
||||
}
|
||||
|
@ -436,10 +452,12 @@ describe('sql/getCallHistoryGroups', () => {
|
|||
callId,
|
||||
peerId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode,
|
||||
type: CallType.Video,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -510,10 +528,12 @@ describe('sql/getCallHistoryGroupsCount', () => {
|
|||
callId,
|
||||
peerId: conversationId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Direct,
|
||||
type,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: DirectCallStatus.Accepted,
|
||||
};
|
||||
}
|
||||
|
@ -547,10 +567,12 @@ describe('sql/getCallHistoryGroupsCount', () => {
|
|||
callId,
|
||||
peerId: roomId,
|
||||
ringerId: null,
|
||||
startedById: null,
|
||||
mode: CallMode.Adhoc,
|
||||
type: CallType.Adhoc,
|
||||
direction: CallDirection.Outgoing,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status: AdhocCallStatus.Joined,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,10 +40,12 @@ describe('sql/getRecentStaleRingsAndMarkOlderMissed', () => {
|
|||
callId,
|
||||
peerId,
|
||||
ringerId: generateAci(),
|
||||
startedById: generateAci(),
|
||||
mode: CallMode.Group,
|
||||
type: CallType.Group,
|
||||
direction: CallDirection.Incoming,
|
||||
timestamp,
|
||||
endedTimestamp: null,
|
||||
status,
|
||||
};
|
||||
await saveCallHistory(call);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue