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

@ -33,10 +33,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Joined,
},
callCreator,
@ -62,10 +64,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Outgoing,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Joined,
},
callCreator,
@ -91,10 +95,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Declined,
},
callCreator,
@ -120,10 +126,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now() - HOUR,
endedTimestamp: null,
status: GroupCallStatus.Joined,
},
callCreator,
@ -149,10 +157,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now() - HOUR,
endedTimestamp: null,
status: GroupCallStatus.Missed,
},
callCreator,
@ -178,10 +188,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Outgoing,
timestamp: Date.now() - HOUR,
endedTimestamp: null,
status: GroupCallStatus.Joined,
},
callCreator,
@ -209,10 +221,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Ringing,
},
callCreator,
@ -241,10 +255,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Incoming,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Ringing,
},
callCreator,
@ -272,10 +288,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: callCreator.serviceId ?? null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Outgoing,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Ringing,
},
callCreator,
@ -300,10 +318,12 @@ describe('calling notification helpers', () => {
callId: '123',
peerId: getPeerIdFromConversation(getDefaultGroup()),
ringerId: null,
startedById: null,
mode: CallMode.Group,
type: CallType.Group,
direction: CallDirection.Outgoing,
timestamp: Date.now(),
endedTimestamp: null,
status: GroupCallStatus.Ringing,
},
callCreator: null,