mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
A set of fixes and upgrades
* writeToDownloads: Add missing await * Remove window.isFocused() - not used anywhere! * Update typescript, p-queue, make necessary changes to fix build * Slow down sender certificate retries with no existing cert * Slow down signed prekey refreshes when unlinked - 5s -> 5m * Update protobufjs to 4.1.2
This commit is contained in:
@@ -37,12 +37,15 @@ interface ShimmedWindow extends Window {
|
||||
ConversationController: ConversationControllerType;
|
||||
}
|
||||
|
||||
const unknownWindow = window as unknown;
|
||||
const shimmedWindow = unknownWindow as ShimmedWindow;
|
||||
|
||||
export function sendStickerPackSync(
|
||||
packId: string,
|
||||
packKey: string,
|
||||
installed: boolean
|
||||
) {
|
||||
const { ConversationController, textsecure, log } = window as ShimmedWindow;
|
||||
const { ConversationController, textsecure, log } = shimmedWindow;
|
||||
const ourNumber = textsecure.storage.user.getNumber();
|
||||
const { wrap, sendOptions } = ConversationController.prepareForSend(
|
||||
ourNumber,
|
||||
|
||||
Reference in New Issue
Block a user