Reinitialize redux after importing a backup
This commit is contained in:
parent
19e0eb4444
commit
abdef4847a
21 changed files with 437 additions and 264 deletions
|
@ -88,7 +88,6 @@ import { canBeSynced as canPreferredReactionEmojiBeSynced } from '../../reaction
|
|||
import { SendStatus } from '../../messages/MessageSendState';
|
||||
import { BACKUP_VERSION } from './constants';
|
||||
import { getMessageIdForLogging } from '../../util/idForLogging';
|
||||
import { getCallsHistoryForRedux } from '../callHistoryLoader';
|
||||
import { makeLookup } from '../../util/makeLookup';
|
||||
import type {
|
||||
CallHistoryDetails,
|
||||
|
@ -470,7 +469,7 @@ export class BackupExportStream extends Readable {
|
|||
|
||||
let cursor: PageMessagesCursorType | undefined;
|
||||
|
||||
const callHistory = getCallsHistoryForRedux();
|
||||
const callHistory = await DataReader.getAllCallHistory();
|
||||
const callHistoryByCallId = makeLookup(callHistory, 'callId');
|
||||
|
||||
const me = window.ConversationController.getOurConversationOrThrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue