Signal-Desktop/ts/util
Scott Nonnenberg 5e63d8aadf
Pipe device number through for sync'd sent story messages
2022-10-05 13:49:43 -07:00
..
lint Story - add caption 2022-10-04 17:17:15 -06:00
ringrtc Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
AbortableProcess.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
AsyncQueue.ts Initial support for job queue 2021-04-29 18:02:27 -05:00
BackOff.ts Add jitter support to BackOff class 2021-09-28 15:12:43 -07:00
GoogleChrome.ts Accept multiple images and videos in attachment picker 2022-09-15 14:40:48 -07:00
JobQueue.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
LatestQueue.ts Group calling: Peek into a group call 2020-11-23 14:49:32 -05:00
MessageController.ts Remove restriction on maybeMergeContacts, combineConversations fixes 2022-08-09 16:46:01 -07:00
Sound.ts Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
StartupQueue.ts Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
Zone.ts Include sender keys in SignalProtocolStore zones 2022-01-07 18:12:13 -08:00
areArraysMatchingSets.ts Honor preferContactAvatars field on AccountRecord 2022-01-25 09:44:45 -08:00
areObjectEntriesEqual.ts Retry outbound reactions for up to a day 2021-10-29 18:19:44 -05:00
arePinnedConversationsEqual.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
arrayBufferToObjectURL.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
assert.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
assignWithNoUnnecessaryAllocation.ts Remove unused `eslint-disable`s 2022-06-03 14:07:51 -07:00
asyncIterables.ts ESLint: allow `for..of` 2021-08-26 13:18:00 -05:00
attachments.ts Cache paths resolved by createPathGetter 2022-04-27 11:40:58 -07:00
avatarDataToBytes.ts Update Inter to 3.19 2022-08-31 12:57:21 -07:00
avatarTextSizeCalculator.ts Render emoji like a sticker 2021-10-06 10:37:53 -07:00
awaitObject.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
batcher.ts Increase backstop queue timeouts across the app 2022-06-27 09:46:43 -07:00
blockSendUntilConversationsAreVerified.ts Handle Safety Number changes while sending a story 2022-08-19 14:05:31 -04:00
callingGetParticipantName.ts Receive rings for group calls 2021-08-20 09:06:15 -07:00
callingMessageToProto.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
callingNotification.ts Disable "Call Again" if already on a call 2022-02-11 12:21:45 -06:00
callingPermissions.ts Simplify permissions popup IPC 2021-11-09 07:35:31 -08:00
callingTones.ts Increase backstop queue timeouts across the app 2022-06-27 09:46:43 -07:00
canvasToBlob.ts Option to send photos as high quality 2021-06-25 11:08:16 -05:00
canvasToBytes.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
characters.ts New Group administration: update title and avatar 2021-03-19 16:57:35 -04:00
cleanSearchTerm.ts Remove backslash from search queries 2021-04-02 15:29:54 -05:00
cleanup.ts No Backbone in data layer; server/client interfaces are now similar 2021-12-10 16:51:54 -06:00
clearTimeoutIfNecessary.ts Add "clean up timer if necessary" utility 2022-02-25 10:37:15 -08:00
combineNames.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
consoleLogger.ts Use console logger when regular is not available 2021-10-21 12:49:53 -07:00
contactSpoofing.ts Group name spoofing warning 2021-06-01 16:30:25 -07:00
copyGroupLink.ts Removes ToastView, new React toast 2021-09-22 16:59:54 -04:00
createAvatarData.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
createIPCEvents.tsx Use X-Signal-Receive-Stories header 2022-10-04 17:48:25 -07:00
createIdenticon.tsx Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
createSupportUrl.ts Add debug log url when submitting it to Support 2022-06-02 16:24:35 -07:00
deconstructLookup.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
deleteAllLogs.ts Report process cpu/memory usage in debug log 2022-05-09 18:12:04 -07:00
deleteDraftAttachment.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
deleteForEveryone.ts Always respect DOE from your own devices 2022-08-05 09:05:30 -07:00
deprecated.ts Fix logging in util/deprecated.ts 2021-07-12 17:43:56 -07:00
downloadAttachment.ts Convert signal.js and preload.js to Typescript 2022-06-13 14:39:35 -07:00
dropNull.ts Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
durations.ts Drop old unprocessed envelopes 2021-12-13 17:25:44 -08:00
emoji.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
encryptProfileData.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
enum.ts Add enum parser utility 2021-04-05 18:08:50 -04:00
expirationTimer.ts Move to smartling for translation services 2022-09-27 14:01:06 -07:00
explodePromise.ts Block WebAPI during active registration 2021-12-17 22:26:50 +01:00
exponentialBackoff.ts Add `durations` utility for computing durations 2021-08-26 09:10:58 -05:00
fileToBytes.ts Moves DraftAttachments into redux 2021-09-24 16:03:32 -04:00
filterAndSortConversations.ts Eliminate unknown groups and contacts from search results 2022-09-26 13:18:11 -07:00
findAndFormatContact.ts Display user badges 2021-11-02 16:01:13 -07:00
findStoryMessage.ts Early preparations for PNP Contact Merging 2022-08-09 14:39:00 -07:00
formatDuration.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
generateBlurHash.ts Process text story messages 2022-04-05 21:18:07 -04:00
getAccessControlOptions.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
getAnimatedPngDataIfExists.ts Update electron to 13.1.2 2021-06-10 13:53:43 -07:00
getAvatarData.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
getBasicAuth.ts Use new CDS implementation in staging 2022-03-09 11:28:40 -08:00
getClassNamesFor.ts Adds debugging information to stories 2022-07-25 11:55:44 -07:00
getConversationColorAttributes.ts Fix default conversation color overrides 2021-12-03 18:10:03 -08:00
getConversationMembers.ts Don't send to blocked users 2022-02-24 18:40:56 -08:00
getConversationUnreadCountForAppBadge.ts Remove inboxCollection, ensure falsey active_at removes from badge count 2022-05-31 18:26:57 -07:00
getCustomColorStyle.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
getFontNameByTextScript.ts Move to smartling for translation services 2022-09-27 14:01:06 -07:00
getGroupMemberships.ts Use UUIDs in group database schema 2021-10-26 15:59:08 -07:00
getHSL.ts Conversation Colors 2021-05-28 09:15:17 -07:00
getInitials.ts getInitials: handle more cases 2021-04-02 15:30:49 -05:00
getMessageTimestamp.ts Convert `ReactWrapperView` to TypeScript 2022-06-03 09:33:39 -07:00
getMuteOptions.ts `isMuted` -> `isConversationMuted` 2022-05-23 18:37:53 +00:00
getMutedUntilText.ts Use `isSameDay` and `isToday` utilities 2022-02-02 10:27:44 -08:00
getOwn.ts Remove unused `eslint-disable`s 2022-06-03 14:07:51 -07:00
getProfile.ts Early preparations for PNP Contact Merging 2022-08-09 14:39:00 -07:00
getProvisioningUrl.ts Uint8Array migration 2021-09-23 17:49:05 -07:00
getRecipientConversationIds.ts Sync my stories with primary device 2022-06-30 20:52:03 -04:00
getRecipients.ts Sync my stories with primary device 2022-06-30 20:52:03 -04:00
getSendOptions.ts Send and receive PniSignatureMessage 2022-08-15 14:53:33 -07:00
getSendTarget.ts Sync my stories with primary device 2022-06-30 20:52:03 -04:00
getSignalConnections.ts Filter out groups from signal connections 2022-08-04 13:26:29 -07:00
getStoryBackground.ts Use video screenshot as background blur in story viewer 2022-07-29 13:13:01 -04:00
getStoryDuration.ts Adjust story duration 2022-08-11 14:03:56 -07:00
getStoryReplyText.ts Adjust story replies for direct conversations 2022-05-10 15:02:21 -04:00
getStreamWithTimeout.ts Add "clean up timer if necessary" utility 2022-02-25 10:37:15 -08:00
getStringForProfileChange.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
getTextWithMentions.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
getThemeType.ts Adjust some types 2022-07-12 17:37:21 -07:00
getUserAgent.ts Fix UA string 2022-06-20 17:31:32 -07:00
getUuidsForE164s.ts Separate flag for cdsi in beta channel 2022-09-13 21:07:47 -07:00
grapheme.ts Story - add caption 2022-10-04 17:17:15 -06:00
graphemeAwareSlice.ts Adds captions in the viewer 2022-04-14 13:02:12 -04:00
groupMemberNameCollisions.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
handleAttachmentsProcessing.ts Accept multiple images and videos in attachment picker 2022-09-15 14:40:48 -07:00
handleImageAttachment.ts Check filename extension for heic/heif images 2021-12-06 18:20:27 +01:00
handleMessageSend.ts Send and receive PniSignatureMessage 2022-08-15 14:53:33 -07:00
handleOutsideClick.ts Fix outside click in story replies 2022-09-29 13:13:45 -07:00
handleRetry.ts Show internal error toast on CDS errors 2022-08-30 17:03:42 -07:00
handleVideoAttachment.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
hasAttachmentDownloads.ts Process incoming story messages 2022-03-04 13:14:52 -08:00
hasExpired.ts Convert signal.js and preload.js to Typescript 2022-06-13 14:39:35 -07:00
idForLogging.ts markStoryRead: More logging in unusual cases 2022-10-03 16:10:20 -07:00
imagePathToBytes.ts Uint8Array migration 2021-09-23 17:49:05 -07:00
imageToBlurHash.ts upgrade electron-builder to 22.10.5 2021-04-13 18:27:43 -07:00
incrementMessageCounter.ts Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
index.ts Include ACI+Access Keys pairs with CDSI requests 2022-08-18 13:44:53 -07:00
isAnnouncementGroupReady.ts Standardize feature flag for internal testing 2021-08-05 10:00:33 -07:00
isAttachmentSizeOkay.ts Support for server-configurable maximum attachment size 2022-04-13 10:47:39 -07:00
isConversationAccepted.ts Introduce new Profile Fetch service, with centralized queueing 2022-07-13 17:46:46 -07:00
isConversationMuted.ts `isMuted` -> `isConversationMuted` 2022-05-23 18:37:53 +00:00
isConversationNameKnown.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
isConversationSMSOnly.ts Fix SMS-only check for unregistered convo 2021-06-01 13:10:19 -07:00
isConversationUnread.ts Add "new conversation" composer for direct messages 2021-03-19 16:53:51 -04:00
isConversationUnregistered.ts Support unregisteredAtTimestamp in storage service 2022-09-19 11:47:49 -07:00
isEmojiOnlyText.tsx Improve performance of isEmojiOnlyText 2022-01-27 13:28:04 -08:00
isFileDangerous.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
isGroupCallOutboundRingEnabled.ts Let users ring members when starting a group call 2021-08-25 16:42:51 -05:00
isInSystemContacts.ts Don't show name collisions for system contacts 2021-06-02 10:24:22 -07:00
isMessageUnread.ts Show "unplayed" dot on incoming audio messages 2021-08-12 13:15:55 -05:00
isNormalNumber.ts Refresh profiles on app start (at most every 12 hours) 2021-03-19 16:57:36 -04:00
isNotNil.ts Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
isPathInside.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
isPhoneNumberSharingEnabled.ts Removes old feature flags 2021-08-18 18:04:38 -07:00
isRecord.ts Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
isSameAvatarData.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
isSorted.ts Tweaks to left pane snapping logic 2021-10-14 16:19:50 -05:00
isValidE164.ts Handle signal.me links 2021-08-28 08:27:38 -05:00
isVideoGoodForStories.ts Only accept video/mp4 for story uploads 2022-08-12 16:44:10 -07:00
isWindowDragElement.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
iterables.ts Consecutive playback and per-conversation playback rate 2022-09-15 14:10:46 -06:00
leftPaneWidth.ts Process incoming story messages 2022-03-04 13:14:52 -08:00
libphonenumberInstance.ts Allow adding to a group by phone number 2022-04-04 17:38:22 -07:00
libphonenumberUtil.ts Convert libphonenumber utilities to TypeScript, removing unused ones 2022-06-01 10:48:16 -07:00
loadRecentEmojis.ts Move emoji loading into TS 2021-09-20 10:59:09 -07:00
loadable.ts Redesign device link screens 2021-12-16 16:02:22 +01:00
longRunningTaskWrapper.tsx Convert `ReactWrapperView` to TypeScript 2022-06-03 09:33:39 -07:00
lookupConversationWithoutUuid.ts Include ACI+Access Keys pairs with CDSI requests 2022-08-18 13:44:53 -07:00
makeLookup.ts New Group administration: Add users 2021-03-19 16:57:35 -04:00
mapObjectWithSpec.ts Handle PniChangeNumber 2022-07-28 14:50:10 -04:00
mapToSupportLocale.ts Always use - (not _) when dealing with locales 2022-07-26 13:06:34 -07:00
mapUtil.ts Dynamic audio level indicator 2022-05-18 23:28:51 -04:00
markConversationRead.ts Ensure deleting conversation deletes story replies 2022-09-29 17:57:11 -07:00
maybeForwardMessage.ts Move getUntrustedContacts out of conversation_view 2022-08-16 16:59:11 -07:00
memoizeByRoot.ts Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
messageBatcher.ts Optimize a few queries 2021-12-20 22:04:02 +01:00
migrateColor.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
missingCaseError.ts Remove duplicate helper function from `missingCaseError` 2022-02-01 16:57:31 -08:00
normalizeDeviceName.ts Redesign device link screens 2021-12-16 16:02:22 +01:00
normalizeUuid.ts Dropped storage keys should not cause upload 2022-02-14 11:36:32 -08:00
objectMap.ts Create text stories 2022-06-16 17:48:57 -07:00
onStoryRecipientUpdate.ts Pipe device number through for sync'd sent story messages 2022-10-05 13:49:43 -07:00
openLinkInWebBrowser.ts Moves navigateTo to util 2021-09-21 16:45:25 -04:00
parseIntOrThrow.ts Support for creating New Groups 2021-03-19 16:53:52 -04:00
parseIntWithFallback.ts Support for creating New Groups 2021-03-19 16:53:52 -04:00
parseRemoteClientExpiration.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
parseRetryAfter.ts Challenge: If no retry-after header on 428, don't start timer for retry 2022-04-25 16:05:23 -07:00
patchWindows7Hostname.ts Monkey-patch os.hostname on Windows 7 2022-06-23 12:15:27 -07:00
phoneNumberDiscoverability.ts Storage service: save new AccountRecord fields to disk 2021-04-05 18:08:50 -04:00
phoneNumberSharingMode.ts Send and receive PniSignatureMessage 2022-08-15 14:53:33 -07:00
popperUtil.ts Fix tooltip placement bugs by upgrading Popper 2021-08-03 12:04:49 -05:00
preload.ts Use `invoke`/`handle` in `settingsChannel` 2021-11-09 16:56:56 -08:00
privacy.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
processAttachment.ts Accept multiple images and videos in attachment picker 2022-09-15 14:40:48 -07:00
processImageFile.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
queueAttachmentDownloads.ts Convert signal.js and preload.js to Typescript 2022-06-13 14:39:35 -07:00
reallyJsonStringify.ts Convert logging infrastructure to TypeScript 2021-01-27 13:13:33 -08:00
refMerger.ts Fix render loop in `<Modal>`, clean up ref merger code 2021-10-01 16:53:00 -07:00
registration.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
replaceIndex.ts Let users customize the preferred reaction palette 2021-09-09 09:29:01 -07:00
requestMicrophonePermissions.ts Simplify permissions popup IPC 2021-11-09 07:35:31 -08:00
resolveAttachmentDraftData.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
resolveDraftAttachmentOnDisk.ts Capture draft attachment's dimensions 2021-11-30 15:32:55 -08:00
retryDeleteForEveryone.ts Delete for everyone: Track sends and show failure states 2022-03-04 11:22:31 -08:00
retryMessageSend.ts Move common utils out of conversation view 2021-09-27 11:29:00 -05:00
retryPlaceholders.ts Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
rotatingPinoDest.ts Update to latest pino 2022-10-03 15:53:41 -07:00
safetyNumber.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
saveAttachment.ts Sync my stories with primary device 2022-06-30 20:52:03 -04:00
scaleImageToLevel.ts updateSchema: Be resilient to invalid images 2022-07-05 17:28:00 -07:00
scrollUtil.ts Remove React Virtualized from `<Timeline>` 2022-03-03 14:23:10 -06:00
sendDeleteForEveryoneMessage.ts Sync my stories with primary device 2022-06-30 20:52:03 -04:00
sendReceipts.ts Send and receive PniSignatureMessage 2022-08-15 14:53:33 -07:00
sendStoryMessage.ts Do not allow send to announcement only groups 2022-10-05 15:43:37 -04:00
sendToGroup.ts Don't fallback to client-fanout on timeout, and more logs 2022-09-30 13:33:24 -07:00
sessionTranslation.ts Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
setUtil.ts Speaking indicator for group calls 2022-02-08 12:30:33 -06:00
setupI18n.ts support icu messageformat for translations 2022-10-03 14:19:54 -07:00
sgnlHref.ts Only process signal domain links if they have hash/path/query 2022-09-19 13:42:37 -07:00
shouldBlurAvatar.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
shouldDownloadStory.ts Download your own story attachments. Hydrate story replies on receive 2022-08-10 11:48:52 -07:00
shouldNeverBeCalled.ts tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
shouldRespondWithProfileKey.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
showLightbox.tsx Sync my stories with primary device 2022-06-30 20:52:03 -04:00
showToast.tsx Accept multiple images and videos in attachment picker 2022-09-15 14:40:48 -07:00
sleep.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
sniffImageMimeType.ts Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
sortByTitle.ts Prefer `type` to `interface` and add an ESLint rule 2021-01-25 18:29:00 -08:00
startTimeTravelDetector.ts Rewrite `WallClockListener` as `onTimeTravel` 2022-05-31 09:22:31 -07:00
theme.ts Dark theme for calling device selection 2020-12-04 15:03:01 -08:00
timelineUtil.ts New 'unseenStatus' field for certain secondary message types 2022-04-22 11:35:14 -07:00
timer.ts Improve layout of various message bubbles 2022-04-07 09:58:15 -07:00
timestamp.ts Adds playback bar to story viewer 2022-05-06 12:02:44 -07:00
timestampLongUtils.ts Use --force-long with pbjs 2022-03-23 13:49:27 -07:00
toggleMaximizedBrowserWindow.ts Prefer `import type` when importing types 2021-10-26 14:15:33 -05:00
universalExpireTimer.ts Universal Disappearing Messages 2021-06-01 13:45:43 -07:00
updateOurUsernameAndPni.ts Handle PniChangeNumber 2022-07-28 14:50:10 -04:00
url.ts Remove many instances of deprecated url.parse 2021-05-20 17:37:07 -07:00
userLanguages.ts Update comment about maximum number of server locales 2022-07-08 09:14:21 -07:00
uuidFetchState.ts Allow adding to a group by phone number 2022-04-04 17:38:22 -07:00
uuidToBytes.ts Edit distribution lists via story settings menu 2022-07-20 20:07:09 -04:00
validateConversation.ts Adjust some types 2022-07-12 17:37:21 -07:00
verifyStoryListMembers.ts Handle Safety Number changes while sending a story 2022-08-19 14:05:31 -04:00
version.ts Introduce new auto-updating staging channel 2022-06-14 15:08:38 -07:00
waitBatcher.ts Increase backstop queue timeouts across the app 2022-06-27 09:46:43 -07:00
waitForOnline.ts Add "clean up timer if necessary" utility 2022-02-25 10:37:15 -08:00
webSafeBase64.ts Support for joining New Groups via invite links 2021-01-29 14:16:48 -08:00
whatTypeOfConversation.ts Introduce new conversationJobQueue 2022-02-16 10:36:21 -08:00
whitespaceStringUtil.ts Trim profile names when setting them 2022-01-26 13:58:00 -08:00
windowsZoneIdentifier.ts Fix typos in TypeScript and SCSS files 2021-04-02 15:28:07 -05:00
wrapEventEmitterOnce.ts Optimize number of range requests in updater 2022-03-01 14:44:29 -08:00
wrapWithSyncMessageSend.ts Introduce new urgent property for outgoing messages 2022-07-01 09:55:13 -07:00
writeDraftAttachment.ts Capture draft attachment's dimensions 2021-11-30 15:32:55 -08:00
zkgroup.ts Stop using deprecated PniCredential 2022-09-21 09:18:48 -07:00