Only create call links from storage sync after refresh confirmed

This commit is contained in:
ayumi-signal 2024-10-15 11:49:32 -07:00 committed by GitHub
parent 86abb43aec
commit 568c09c579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 169 additions and 46 deletions

View file

@ -172,6 +172,7 @@ import {
} from '../types/CallDisposition';
import {
callLinkExists,
defunctCallLinkExists,
getAllCallLinks,
getCallLinkByRoomId,
getCallLinkRecordByRoomId,
@ -189,6 +190,7 @@ import {
beginDeleteCallLink,
deleteCallLinkFromSync,
_removeAllCallLinks,
insertDefunctCallLink,
} from './server/callLinks';
import {
replaceAllEndorsementsForGroup,
@ -313,6 +315,7 @@ export const DataReader: ServerReadableInterface = {
hasGroupCallHistoryMessage,
callLinkExists,
defunctCallLinkExists,
getAllCallLinks,
getCallLinkByRoomId,
getCallLinkRecordByRoomId,
@ -460,6 +463,7 @@ export const DataWriter: ServerWritableInterface = {
finalizeDeleteCallLink,
_removeAllCallLinks,
deleteCallLinkFromSync,
insertDefunctCallLink,
migrateConversationMessages,
saveEditedMessage,
saveEditedMessages,
@ -6436,6 +6440,7 @@ function removeAll(db: WritableDB): void {
DELETE FROM callLinks;
DELETE FROM callsHistory;
DELETE FROM conversations;
DELETE FROM defunctCallLinks;
DELETE FROM emojis;
DELETE FROM groupCallRingCancellations;
DELETE FROM groupSendCombinedEndorsement;