Only create call links from storage sync after refresh confirmed
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
parent
6859b1a220
commit
23e3a847d1
9 changed files with 169 additions and 46 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue