Use job queue when restoring call links from storage
This commit is contained in:
parent
84c562d0b2
commit
f23f86d0e2
4 changed files with 138 additions and 10 deletions
|
@ -78,6 +78,7 @@ import {
|
|||
toCallHistoryFromUnusedCallLink,
|
||||
} from '../util/callLinks';
|
||||
import { isOlderThan } from '../util/timestamp';
|
||||
import { callLinkRefreshJobQueue } from '../jobs/callLinkRefreshJobQueue';
|
||||
|
||||
const MY_STORY_BYTES = uuidToBytes(MY_STORY_ID);
|
||||
|
||||
|
@ -2024,11 +2025,7 @@ export async function mergeCallLinkRecord(
|
|||
DataWriter.saveCallHistory(callHistory),
|
||||
]);
|
||||
|
||||
// Refresh call link state via RingRTC and update in redux
|
||||
window.reduxActions.calling.handleCallLinkUpdate({
|
||||
rootKey: rootKeyString,
|
||||
adminKey: adminKeyString,
|
||||
});
|
||||
drop(callLinkRefreshJobQueue.add({ roomId: callLink.roomId }));
|
||||
window.reduxActions.callHistory.addCallHistory(callHistory);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue