Commit Graph

7232 Commits

Author SHA1 Message Date
Fedor Indutny a4ff7ae240 Report more performance stats 2021-04-13 16:43:56 -07:00
Fedor Indutny c6d5d852a9 Upgrade electron to 12.0.3 2021-04-13 16:18:05 -07:00
Fedor Indutny a5b4025a67 Cache node_modules in CI, benchmark workflow 2021-04-13 15:39:46 -07:00
Evan Hahn 842d7980a6 Remove old comment about await in loop 2021-04-13 15:22:28 -07:00
Josh Perez ef781af0ce Updates a11y dev deps 2021-04-13 17:33:24 -04:00
Fedor Indutny a50d797d16 Fix attachment filename being truncated when zoomed in 2021-04-13 10:13:18 -07:00
Fedor Indutny d933e3a6fe Performance: Automate clean up of old material after hitting a limit in libsignal-protocol 2021-04-13 08:52:26 -07:00
Kevin J. Sung 2d5ef9eae1 edit CSS to fix attachment filename being truncated 2021-04-13 11:20:20 -04:00
Evan Hahn 62f1a42c25 Add reusable <Modal> component, use with <Alert> 2021-04-13 09:20:02 -05:00
Jost Schulte 1493c1bf0e Reduce media min width for message reactions 2021-04-13 12:20:22 +02:00
Quentin Hibon 38074374f4 Add test 2021-04-10 01:30:16 +02:00
Josh Perez 1c23efb76b v5.0.0-beta.4 v5.0.0-beta.4 2021-04-09 16:46:00 -04:00
Hugo Osvaldo Barrera 207c533de1 Use a node-gyp version which supports Python3
The currently pinned version of `node-gyp` requires Python 2.  Python 2
has reached its EOL a long time ago and is unsupported by upstream.

The requirement on Python 2 is also an unnecessary barrier for new
developers to contribute to Signal.

This changeset updates the required version of node-gyp to one
compatible with Python 3.

`CONTRIBUTING.md` remains unchanged, since this dependency was not
previously mentioned anyway.

Supersedes #4407
Fixes #4783
2021-04-09 22:13:11 +02:00
Josh Perez a2a361f0bf Extra validations for storage service 2021-04-09 16:12:05 -04:00
Scott Nonnenberg e47b00a33c Don't mark old messages as read on timer update 2021-04-09 13:11:36 -07:00
Fedor Indutny 9846fb8edf Cache GroupFields
Computing GroupFields is costly so cache them instead of doing the
derivation anew on every message.
2021-04-09 12:14:59 -07:00
Fedor Indutny 847cc3e055 Do not generate notification when disabled
Generating identicons for notifications is costly even if they are
cached. Avoid this extra load when notifications are not going to be
shown anyway.
2021-04-09 15:01:25 -04:00
Evan Hahn 23b3d34eef Upgrade Sharp to v0.28.1 2021-04-09 15:01:25 -04:00
Josh Perez 6c0acd09df Sync mute state 2021-04-09 11:19:38 -05:00
Fedor Indutny 15247e1c9a Fix addStickerPackReference 2021-04-09 00:06:46 -04:00
Fedor Indutny 207d05fd05 Run SQL initialize in parallel with createWindow 2021-04-09 00:06:46 -04:00
Fedor Indutny af9e038add Optimize hot queries
`getLastConversationX()` is called from debounced function, but
depending on how fast the fetch from the server is the actual
invocations could happen for every other message. Prepare and optimize
queries to save time.
2021-04-09 00:06:46 -04:00
Fedor Indutny f7cc23e034 Disable webpack cache for now 2021-04-09 00:06:46 -04:00
Scott Nonnenberg e0415de893 Don't always show an error on manual contact sync 2021-04-09 00:06:46 -04:00
Evan Hahn a82fa86176 Fetch sender certificates on-demand 2021-04-09 00:06:46 -04:00
Fedor Indutny 6ff55914f0 Deduplicate conversations before passing to redux
Receiving a single message on conversations triggers ~4 updates.
However, since `.format()` is called on next tick - the value is going
to be the same regardless of which particular update triggered it. Batch
conversations and de-duplicate them before passing to redux to save
time.
2021-04-09 00:06:14 -04:00
Fedor Indutny 4fd3ed7242 Bundle preload.js 2021-04-09 00:06:14 -04:00
Evan Hahn 9c3e3c4331 Put GroupTitleInput.scss in the right place 2021-04-09 00:05:41 -04:00
Fedor Indutny eb6d1b7216 Fix StickerType in sql/Interface and fix query 2021-04-09 00:05:41 -04:00
Fedor Indutny c609389aaf Update to Webpack 5 2021-04-09 00:05:41 -04:00
Fedor Indutny d599032cef Always run yarn from "scripts" 2021-04-08 23:53:18 -04:00
Evan Hahn f615b1a75f Reject reactions with invalid number of graphemes 2021-04-08 23:53:18 -04:00
Evan Hahn 95482fbf31 Add affirmative and destructive secondary button variants 2021-04-08 23:53:18 -04:00
Fedor Indutny 0555ef0a1e Change primary key for messages table 2021-04-08 23:53:18 -04:00
Fedor Indutny 1fc7769f9f Optimize database and run quick check 2021-04-08 23:53:18 -04:00
Fedor Indutny b9248e04ed Cache SQL statements used during startup 2021-04-08 23:53:18 -04:00
Evan Hahn 7ae25590e6 Add conversation hero to <Timeline> stories 2021-04-08 23:53:18 -04:00
Evan Hahn b5269f4927 Remove unused isAccepted property from ConversationType 2021-04-08 23:53:18 -04:00
Fedor Indutny 37c8c1727f Types, better-sqlite3, and worker_threads for our sqlite 2021-04-08 23:53:18 -04:00
Fedor Indutny fc3004a183 Make test-node report errors 2021-04-08 23:51:54 -04:00
Evan Hahn 8fe1be8678 Remove ability to set or read author E164 for new quotes 2021-04-08 23:51:54 -04:00
Evan Hahn 18ccda83ba Use UUID-only sender certificate when applicable 2021-04-08 23:51:54 -04:00
Fedor Indutny cfd77bf968 Update yarn to the latest for CI 2021-04-08 23:51:54 -04:00
Fedor Indutny 3970ae642d Update node to 14.16.0 2021-04-08 23:51:54 -04:00
Fedor Indutny a97abf718d Sort lint exceptions 2021-04-08 23:51:54 -04:00
Fedor Indutny 6e41009d74 Update zkgroup to the latest 2021-04-08 23:51:54 -04:00
Fedor Indutny 5bcf50ede9 Update electron to 12.0.2 2021-04-08 23:51:53 -04:00
Fedor Indutny 2796dfab23 Check charset types in linkPreviewFetch.ts 2021-04-08 23:51:53 -04:00
Josh Perez fbaf3ba247 v5.0.0-beta.3 v5.0.0-beta.3 2021-04-08 15:37:53 -04:00
Scott Nonnenberg bb412d61c2 Required profile sharing: Only activate for 1:1 and gv1 groups 2021-04-08 15:35:11 -04:00