Commit graph

1806 commits

Author SHA1 Message Date
Fedor Indutny
71572db7a9
Get native theme through IPC not remote 2021-06-30 11:57:43 -07:00
Fedor Indutny
773aa9af19
Better emoji support in linkify/previews 2021-06-30 10:00:02 -07:00
Evan Hahn
65ad608aa7
Move message selector tests to the right place 2021-06-29 17:51:57 -07:00
Evan Hahn
92cbfc4437
Improve readability of image captions 2021-06-29 14:13:36 -07:00
Evan Hahn
dc78165043
Fix types when creating ephemeral messages for DOE and reactions 2021-06-29 16:05:56 -05:00
Evan Hahn
f87a3a2cb7
Add "viewed" receipt type to protos 2021-06-29 15:11:10 -05:00
Fedor Indutny
2cd4160422
Unify audio playback under App component 2021-06-29 12:58:29 -07:00
Evan Hahn
8b30fc17cd
Officially support the system tray on Linux, in beta only 2021-06-29 14:29:40 -05:00
Evan Hahn
af1f2ea449
Officially support the system tray on Windows 2021-06-29 12:18:03 -05:00
Fedor Indutny
23acbf284e
Create missing index for markRead 2021-06-29 09:45:31 -07:00
Evan Hahn
79aba6bff4
A couple cleanups in createSentMessage 2021-06-29 09:41:42 -05:00
Fedor Indutny
d11283f0f1
Update RingRTC to v2.10.6 2021-06-29 09:39:53 -05:00
Evan Hahn
a3315bcb68
Skip double save with sync message that has errors 2021-06-28 16:04:42 -07:00
Evan Hahn
4495a1ac67
Add reduce iterables utility 2021-06-28 14:46:33 -07:00
Evan Hahn
7cf7b1fca5
Upgrade zkgroup to v0.7.3 2021-06-28 12:16:55 -07:00
Evan Hahn
c69b2d3ace
Add type for second parameter of createSentMessage 2021-06-28 12:15:48 -07:00
Fedor Indutny
cd28e71bc6
Default disappearing message timeout fixes 2021-06-25 16:52:56 -07:00
Evan Hahn
1d3e06e3f5
Fix: clean up batcher timeouts in all cases 2021-06-25 11:25:50 -07:00
Evan Hahn
b1c1bd5e41
Group calling: show avatar if we haven't received video yet/in awhile 2021-06-25 12:23:15 -05:00
Josh Perez
01eabf9ec6
Option to send photos as high quality 2021-06-25 11:08:16 -05:00
Fedor Indutny
6c56d5a5f1
Fix UI for GIFs in groups 2021-06-24 16:00:11 -05:00
Fedor Indutny
a7799a74c1
Fix rendering of GIFs 2021-06-24 12:05:27 -07:00
Fedor Indutny
a053c395a4
Forwarded messages must use different timestamps 2021-06-24 12:38:52 -05:00
Fedor Indutny
6883e199ae
Ensure that messages are in redux when scrolling 2021-06-23 15:57:39 -07:00
Fedor Indutny
81e6198652
Normalize UUID for formatting contact 2021-06-23 14:16:29 -05:00
Fedor Indutny
cf64fbdc7c
Fix Cmd+T navigation for left pane 2021-06-23 10:53:04 -07:00
Fedor Indutny
d623533707
Fix check for successfull delivery 2021-06-23 10:01:13 -07:00
Evan Hahn
c1e2757751
Remove redundant prop from <MessageDetail> props type 2021-06-23 10:00:56 -07:00
Fedor Indutny
323eb0688b
Switch to FULL synchronous of sqlite 2021-06-23 09:16:41 -07:00
Evan Hahn
b990204bce
Clean up MessageModel group_update 2021-06-23 09:14:11 -07:00
Fedor Indutny
a6394e0c8b
Reconnect within MessageReceiver 2021-06-23 09:47:42 -05:00
Evan Hahn
0ec23be91b
Fix React warning when mounting <App> 2021-06-23 09:33:27 -05:00
Evan Hahn
6b2dfeb9f5
Use POJO instead of MessageModel in ConversationView quote logic 2021-06-22 16:16:50 -07:00
Fedor Indutny
c9b1ce6655
Use assert in normalizeUuid 2021-06-22 16:08:55 -07:00
Evan Hahn
9db19283ac
MessageController: return all messages by sent at, not just 1 2021-06-22 16:05:05 -07:00
Fedor Indutny
9bffd24708
Use smaller batches for multi-var queries 2021-06-22 11:44:51 -07:00
Fedor Indutny
cb0696d59d
Prevent deadlock in maybeApplyUniversalTimer 2021-06-22 10:03:09 -05:00
Fedor Indutny
9f0c630574
Move to protobufjs in ts/groups.ts 2021-06-22 09:46:42 -05:00
Fedor Indutny
972a4cba0c
Show universal timer notification in open conversation 2021-06-22 09:18:22 -05:00
Fedor Indutny
d4d454e554
Reject WebSocket connect timeout with an HTTPError 2021-06-21 14:06:06 -05:00
Evan Hahn
ca330899bb
Backfill missing expire times for incoming messages 2021-06-18 12:12:04 -07:00
Scott Nonnenberg
24960d481e
Move all files under /app to typescript 2021-06-18 10:04:27 -07:00
Josh Perez
94d116c621
Removes some Backbone views 2021-06-17 14:15:09 -07:00
Josh Perez
93bc094342
Improve CallingScreenSharingController for long text 2021-06-17 11:41:16 -07:00
Evan Hahn
65a1e82857
Emojify and linkify group descriptions 2021-06-17 12:15:51 -05:00
Scott Nonnenberg
68f1023946
Move message.getPropsForBubble and friends to selectors 2021-06-17 10:15:10 -07:00
Evan Hahn
03a187097f
Disappearing message cleanups 2021-06-16 17:20:17 -05:00
Evan Hahn
dfa6fb5d61
Fix unmounting of inbox view 2021-06-16 17:16:08 -05:00
Evan Hahn
3389b2e2b8
Remove deleted messages from Redux search state 2021-06-16 09:39:09 -07:00
Scott Nonnenberg
1520c80013
Remove messageCollection from Conversation model 2021-06-15 17:44:14 -07:00
Evan Hahn
61ad1231df
Ensure we always set expiration timer 2021-06-15 16:49:05 -07:00
Scott Nonnenberg
34afb98fcf
Ensure that typing indicators are always sent with online = true 2021-06-15 16:32:12 -07:00
Evan Hahn
9dd7e763c4
Remove references to non-existent messageExpired action 2021-06-15 16:30:23 -07:00
Fedor Indutny
562ab5a5a5
Fix syncing of "Off" setting for default timer 2021-06-15 10:06:53 -07:00
Fedor Indutny
584cedecff
Wrap all websocket errors, reconnect earlier 2021-06-14 17:12:58 -07:00
Fedor Indutny
8f5086227a
Enforce stronger types for ArrayBuffers and storage 2021-06-14 17:09:37 -07:00
Fedor Indutny
61ac79e9ae
Log conversation job wait time and duration 2021-06-14 14:55:14 -07:00
Josh Perez
173771d34b
New top-level React root: <App /> 2021-06-14 12:01:00 -07:00
Jordan Rose
9a1f722545
On right-click link in message bubble, show menu to copy 2021-06-14 11:49:12 -07:00
Fedor Indutny
df0aadc8a4
Update electron to 13.1.2 2021-06-10 13:53:43 -07:00
Jordan Rose
befe886a83
Context menu for message bubbles 2021-06-09 15:30:05 -07:00
Fedor Indutny
17e6ec468e
Faster WebSocket reconnects 2021-06-09 15:28:54 -07:00
Fedor Indutny
3cac4a19e1
Move to new getSendOptions location 2021-06-09 12:16:45 -07:00
Scott Nonnenberg
bff3f0c74a
Sender Key: Prepare for production 2021-06-08 14:51:58 -07:00
Scott Nonnenberg
f226822dff
Conversation: Prevent getProps errors on initial link
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2021-06-08 16:31:35 -05:00
Evan Hahn
e4a632f601
Link previews: clean up AbortSignal types 2021-06-08 13:55:37 -07:00
Scott Nonnenberg
13371fbeb7
Don't delete all data if e164 changes (focus on UUID if we have it) 2021-06-08 11:54:20 -07:00
Evan Hahn
a918b06841
Add types to ConversationView where trivial 2021-06-08 09:59:38 -05:00
Josh Perez
d38a0042ba
Fix new link scenario where default color is not set 2021-06-07 15:17:44 -07:00
Evan Hahn
906b949c47
Fix isGroupV2 type error 2021-06-07 10:29:37 -07:00
Evan Hahn
4805226825
Remove unused window option from ConversationView constructor 2021-06-07 10:01:05 -07:00
Josh Perez
df7f702dde
Update group name colors 2021-06-07 11:50:18 -05:00
Josh Perez
d4875fd8f4
Remove isPrivate, isMe, isGroupV1, isGroupV2 from model 2021-06-07 09:39:13 -07:00
Evan Hahn
eaf4036fc8
Compute provisioning URL in separate function 2021-06-07 09:27:02 -07:00
Scott Nonnenberg
3956443f50
Group Description: Render newlines, view button in change notification 2021-06-04 09:27:04 -07:00
Evan Hahn
ba1ba46f4d
Call toasts should be atop call headers 2021-06-04 10:13:51 -05:00
Evan Hahn
2d6b0ecfe9
Edit group title/description: fix focus issues 2021-06-04 09:55:34 -05:00
Evan Hahn
e61354fd55
Fix <CallScreen> stories 2021-06-04 09:55:18 -05:00
Josh Perez
d42a513619
Value in Select needs to be a string(boolean) 2021-06-03 17:42:46 -07:00
Fedor Indutny
4c4351df39
Make link preview image clickable 2021-06-03 17:42:01 -07:00
Scott Nonnenberg
8583be3775
Render proper contact in Delivery Issue notifications 2021-06-03 17:25:41 -05:00
Josh Perez
016ef8af79
Use the new Select component everywhere 2021-06-03 15:12:23 -07:00
Josh Perez
cdf8b0b28d
Fix global custom colored quote in composition area 2021-06-03 14:37:13 -07:00
Josh Perez
53d6065c00
Selects custom color when created 2021-06-03 14:34:36 -07:00
Scott Nonnenberg
6d82acd23c
Forward: Don't re-use timestamp or attachment files 2021-06-03 14:26:56 -07:00
Josh Perez
2370c227e3
Do not start presenting if closing the screen share modal 2021-06-03 14:25:39 -07:00
Scott Nonnenberg
e0d613f1b6
Use correct timestamps for failed call events 2021-06-03 15:19:14 -05:00
Fedor Indutny
5b18bb8563
Fix storybook for calling sources modal 2021-06-03 12:52:11 -07:00
Josh Perez
4416715bff
Revs screensharing feature flag 2021-06-03 11:50:12 -07:00
Josh Perez
c055240dc5
Fix for per chat color selection 2021-06-03 11:46:38 -07:00
Fedor Indutny
56f0e1ba46
Make sure screen name is internationalized 2021-06-03 11:42:30 -07:00
Scott Nonnenberg
84aed82357
Reactions/DFE: Ensure post-save updates are persisted 2021-06-03 13:00:54 -05:00
Fedor Indutny
430d60093a
Fix nested border-radius for attachments 2021-06-02 17:41:23 -07:00
Evan Hahn
6642652bdb
Fix link preview race condition 2021-06-02 17:19:40 -07:00
Josh Perez
66d9bb8418
Focus group description input when editing it 2021-06-02 17:07:37 -07:00
Josh Perez
bd46e3afd6
Fixes global chat color setting 2021-06-02 14:05:09 -07:00
Fedor Indutny
a6ce00ff37
Fix check for universal timer notification 2021-06-02 13:55:10 -07:00
Scott Nonnenberg
9ea827c033
Timeline: mark messages read even with no known oldest message 2021-06-02 15:32:49 -05:00
Evan Hahn
d46963e864
Fix sending of group messages to empty groups 2021-06-02 13:29:31 -07:00
Fedor Indutny
3776909c24
Fix storage upload for universal timers 2021-06-02 13:25:30 -07:00
Fedor Indutny
287abd241d
Fix performance of debug logs view 2021-06-02 15:13:33 -05:00
Fedor Indutny
4ee46cb490
Fix typo in SQL migration logs 2021-06-02 13:43:54 -05:00
Josh Perez
38d4595e3b
Fix camera setting when stopping screenshare 2021-06-02 13:41:28 -05:00
Josh Perez
36617c2e5a
Gradient dial knob improvements 2021-06-02 13:39:30 -05:00
Peter Thatcher
94f3f208d5
Send screnshare even in an audio call 2021-06-02 10:42:41 -07:00
Evan Hahn
23b0a5698f
Fix error in <Timeline> stories 2021-06-02 10:27:12 -07:00
Evan Hahn
6c6eed0b1e
Don't show name collisions for system contacts 2021-06-02 10:24:22 -07:00
Evan Hahn
84be8288e9
Typing bubble avatar should not use cursor: pointer 2021-06-02 09:45:24 -07:00
Fedor Indutny
b009967a83
Display proper text when quoting view once message 2021-06-02 09:42:19 -07:00
Scott Nonnenberg
9705f464be
Group Description: Edit/Receive 2021-06-01 20:24:28 -04:00
Josh Perez
6d7849e6c7
Colors update contact name colors 2021-06-01 16:37:12 -07:00
Evan Hahn
36c15fead4
Group name spoofing warning 2021-06-01 16:30:25 -07:00
Fedor Indutny
51b45ab275
Add extension to uploaded debug log 2021-06-01 17:16:10 -05:00
Fedor Indutny
19f8042cd3
Universal Disappearing Messages 2021-06-01 13:45:43 -07:00
Fedor Indutny
c63871d71b
Fix storybook errors 2021-06-01 13:40:55 -07:00
Fedor Indutny
6e19383a7d
Fix SMS-only check for unregistered convo 2021-06-01 13:10:19 -07:00
Josh Perez
373ffe4663
Screen sharing improvements 2021-06-01 12:47:55 -07:00
Scott Nonnenberg
5a4fc5e425
Sender Key: Disable capability and bug fixes 2021-06-01 12:40:09 -07:00
Fedor Indutny
33595646c1
Add user path to logging exceptions 2021-06-01 11:15:23 -07:00
Fedor Indutny
8841de17a5
Add action for automated backports 2021-06-01 11:04:56 -07:00
Fedor Indutny
e4d7e1e9c8
Simplify attachment jobs SQL query 2021-06-01 10:13:10 -07:00
Fedor Indutny
fcaa34d67a
Fix session transaction issue 2021-05-28 16:09:17 -07:00
Fedor Indutny
87c9151d70
Change color of "delete" button 2021-05-28 12:14:15 -07:00
Scott Nonnenberg
ee513a1965
Support for message retry requests 2021-05-28 12:11:19 -07:00
Josh Perez
28f016ce48
Conversation Colors 2021-05-28 09:15:17 -07:00
Scott Nonnenberg
b63d8e908c
Properly unpad incoming sender key messages 2021-05-28 09:06:09 -07:00
Scott Nonnenberg
ee41e4f71d
A few small bugfixes 2021-05-27 13:47:39 -07:00
Evan Hahn
d4dc9b8e39 Message Requests: Add new "Report spam and block" button 2021-05-27 13:37:58 -07:00
Evan Hahn
20e501d9f1
Remove 4 unused database functions 2021-05-27 08:45:45 -07:00
Evan Hahn
05f9224273
Update Babel dependencies to allow import type 2021-05-27 08:44:06 -07:00
Evan Hahn
7038a3f3ab
Fix <Modal> footers with long-text or lots of buttons 2021-05-27 08:43:39 -07:00
Scott Nonnenberg
e6f1ec2b6b
Send support for Sender Key 2021-05-25 15:40:04 -07:00
Fedor Indutny
d8417e562b
Do not display call buttons for SMS-only convo 2021-05-25 15:30:57 -07:00
Josh Perez
07a0a6da22
Enable screensharing flag for beta users 2021-05-25 15:20:33 -07:00
Scott Nonnenberg
07c1505782
Force load of newer/older messages if, on load, all messages visible 2021-05-25 11:34:34 -07:00
Fedor Indutny
9693700dd2
Switch to WAL after cipher migration 2021-05-25 11:13:37 -07:00
Fedor Indutny
4a6132933c
Fix race condition in session transactions 2021-05-24 15:59:36 -07:00
Fedor Indutny
227f532ec2
Fix processing of cached envelopes 2021-05-24 14:30:56 -07:00
Fedor Indutny
25f4154cde
Add checks for unregistering message receiver 2021-05-24 12:01:45 -07:00
Scott Nonnenberg
e76252d3b2
Fixes for Sender Key: Receive 2021-05-24 11:59:45 -07:00
Scott Nonnenberg
09ef4d85e0
onChange: Emit changed event even if changed set is empty 2021-05-24 11:51:47 -07:00
Fedor Indutny
79a90802c0
Use websocket queue for queueAllCached() 2021-05-24 11:00:53 -07:00
Fedor Indutny
05306c2d3d
Handle durationchange events in MessageAudio 2021-05-24 09:30:50 -07:00
Fedor Indutny
d605daa04f
Fix performance issue for quote rendering 2021-05-21 18:33:54 -07:00
Scott Nonnenberg
bbd611b189
Revert "Fix typo in method name"
This reverts commit 95baa3e02e.
2021-05-21 14:27:17 -07:00
Evan Hahn
95d404c70b
Improve UI performance for no-op profile fetches 2021-05-21 12:53:05 -07:00
Scott Nonnenberg
e859fcd4b4
Partially revert "Clean up inviteLink handling, harden compose input" 2021-05-21 11:32:10 -07:00
Scott Nonnenberg
f6bc4dfe25
Enable click on draft quotes, fetch groups from contact modal 2021-05-21 10:27:28 -07:00
Fedor Indutny
b878cad625
Fix session transactions for archive sessions 2021-05-21 09:03:01 -07:00
Fedor Indutny
6323dd6492
Go back to main process before delayed processing 2021-05-21 09:51:27 -05:00
Fedor Indutny
7b164fdf91 Further improve in-memory transactions in MessageReceiver 2021-05-20 17:37:26 -07:00
Fedor Indutny
7c07fdd589 Fix in-memory transactions in MessageReceiver 2021-05-20 17:37:19 -07:00
Josh Perez
ceffc2380c Add screensharing behind a feature flag 2021-05-20 17:37:19 -07:00
Evan Hahn
7c7f7ee5a0 Add concat iterable utility 2021-05-20 17:37:19 -07:00
Evan Hahn
d07996e910 Add type to WebAPI error message 2021-05-20 17:37:18 -07:00
Fedor Indutny
bc146a54af await goBackToMainProcess in sticker-creator 2021-05-20 17:37:18 -07:00
Scott Nonnenberg
be087c3498 Ensure that context is always provided for error logs 2021-05-20 17:37:18 -07:00
Fedor Indutny
7418a5c663 Rename locks to zones 2021-05-20 17:37:18 -07:00
Evan Hahn
8f0731d498 Remove unsupported auto-launch setting on Linux 2021-05-20 17:37:18 -07:00
Fedor Indutny
1f0119a7ac Reuse global locks, handle empty envelopes 2021-05-20 17:37:17 -07:00
Josh Perez
25f271e61c Always render dialogs in left pane 2021-05-20 17:37:17 -07:00
Evan Hahn
f3e207d0b0 Use timestamp instead of full model for tap-to-view age outs 2021-05-20 17:37:17 -07:00
Fedor Indutny
80da8bb47b Display SMS/MMS disclaimer in empty search results 2021-05-20 17:37:17 -07:00
Scott Nonnenberg
bcaca1ebd5 View Once: Allow for missing sender; only require senderUuid 2021-05-20 17:37:17 -07:00
Evan Hahn
392822372b Iterables: add and use filter 2021-05-20 17:37:17 -07:00
Fedor Indutny
2abc331058 Fix in-memory transactions while accessing sessions 2021-05-20 17:37:10 -07:00
Evan Hahn
6ccf97b5d0 getMessageById query should only select necessary field 2021-05-20 17:37:10 -07:00
Scott Nonnenberg
38f9aef2af On 401 response from Signal server, reconnect websocket 2021-05-20 17:37:09 -07:00
Scott Nonnenberg
4ce4569afb Upgrade a number of sub-dependencies 2021-05-20 17:37:09 -07:00
Fedor Indutny
94d2c56ab9 Introduce in-memory transactions for sessions 2021-05-20 17:37:09 -07:00
Scott Nonnenberg
403b3c5fc6 getSendOptions: Disable sealed sender whenever sending to own account 2021-05-20 17:37:09 -07:00
Josh Perez
215d90fbe8 Always update unreadCount for conversations 2021-05-20 17:37:09 -07:00
Evan Hahn
794d910d4e Remove useless set of message recipients 2021-05-20 17:37:09 -07:00
Fedor Indutny
41a4643380 Use synchronous methods in transactions 2021-05-20 17:37:09 -07:00
Scott Nonnenberg
e6bab06510 Receive support for Sender Key
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
2021-05-20 17:37:08 -07:00
Evan Hahn
e5f9c0db28 Fix crash when quickly closing debug log window 2021-05-20 17:37:08 -07:00
Scott Nonnenberg
4c249ce5dc Don't reset session if sealed sender wrapper is invalid 2021-05-20 17:37:08 -07:00
Fedor Indutny
8fa5ea6b2b Add outlines for MessageAudio buttons 2021-05-20 17:37:08 -07:00
Fedor Indutny
7fa730531a Improve experience for contacts without signal accounts 2021-05-20 17:37:08 -07:00
Fedor Indutny
fe505a7f2f Fix hanging "Clear All Data" on Windows 2021-05-20 17:37:08 -07:00
Fedor Indutny
03eaa9eb3e Apply reactions optimistically 2021-05-20 17:37:08 -07:00
Evan Hahn
18abe93022 Remove many instances of deprecated url.parse 2021-05-20 17:37:07 -07:00
David Sanders
95baa3e02e Fix typo in method name
See [#5233][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5233
2021-05-20 17:37:07 -07:00
Evan Hahn
a8346c490e Fix inaccurate numbers on group details screen 2021-05-20 17:37:07 -07:00
Fedor Indutny
b1d49f7b3e
Do not compute waveform for a long audio 2021-05-12 12:18:02 -07:00
Jacob Kiesel
75d54e7737 Add launch-on login option
See [#5244][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5244
2021-05-11 15:59:21 -05:00
Evan Hahn
b41dab2704
Fix "open conversation menu" keyboard shortcut 2021-05-11 13:40:36 -05:00
Fedor Indutny
e51260a23f
Batch and de-duplicate profile key updates 2021-05-11 13:26:44 -05:00
Fedor Indutny
c2a0072fa1
Apply reactions to messages in "Notes to Self" 2021-05-11 10:06:19 -07:00
Evan Hahn
09d7a253af
Fix non-default disappearing message timers on group details screen 2021-05-11 12:05:02 -05:00
Josh Perez
24b7790829
One SearchInput to rule them all 2021-05-10 20:50:43 -04:00
Scott Nonnenberg
c62b5a900e
Update proxy-agent to v4.0.1 2021-05-10 15:38:39 -07:00
Scott Nonnenberg
efaaafa370
A few small bug fixes 2021-05-10 15:38:18 -07:00
Josh Perez
887b2c1db1
Get the correct unread count for a conversation 2021-05-10 11:49:13 -07:00
Evan Hahn
c68d65ea0b
Center non-square avatar pictures 2021-05-10 12:50:04 -05:00
Fedor Indutny
4b566e0a19
Use fake timers in challenge_test.ts 2021-05-07 17:34:50 -07:00
Fedor Indutny
a3693a7f4a
Fix further flakiness in challenge tests on CI 2021-05-07 15:36:28 -07:00
Evan Hahn
d28678dbf9
Make it more difficult to blur avatars 2021-05-07 17:21:10 -05:00
Josh Perez
1276368f94
Optimize read messages query 2021-05-07 17:50:14 -04:00
Fedor Indutny
0ccc607100
Fix race conditions in challenge test 2021-05-07 13:59:46 -07:00
dependabot-preview[bot]
bfc1524b49
Upgrade bl to v1.2.3 2021-05-07 13:19:30 -07:00
Fedor Indutny
98894ab121
Let group update happen on relink 2021-05-07 15:07:24 -05:00
dependabot-preview[bot]
16034f9358
Upgrade underscore to v1.12.1 2021-05-07 12:04:05 -07:00
Fedor Indutny
470eab8352
Fix race condition in challenge test 2021-05-07 09:10:40 -07:00
Josh Perez
a1e4820cb7
Upgrade to moment@2.29.1 2021-05-07 10:44:41 -05:00
Evan Hahn
cd61d8464d
Upgrade Lodash to latest version, v4.17.21 2021-05-07 09:46:09 -05:00
Josh Perez
e0c324e4ba
Send/Receive support for reaction read syncs 2021-05-06 21:15:25 -04:00
Evan Hahn
f71f789c94
Upgrade Grunt to v1.4.0 2021-05-06 17:07:11 -05:00
Evan Hahn
4cf3d5f14c
lint-deps should skip storybook-static/ 2021-05-06 16:28:40 -05:00
Evan Hahn
3da97268d7
<SmartTimeline> doesn't need to "filter" 3 of its smart components 2021-05-06 12:15:04 -07:00
Scott Nonnenberg
fc12d02a8d
Clean up inviteLink handling, harden compose input 2021-05-06 12:06:20 -07:00
Fedor Indutny
986d8a66bc
Show challenge when requested by server 2021-05-05 17:09:29 -07:00
Evan Hahn
7afbbb3a4c
Fix render loop in <ConversationHero> 2021-05-05 17:35:32 -05:00
Evan Hahn
8ef14e6f39
When incoming message should've been sealed sender, reply with profile key 2021-05-05 09:39:16 -07:00
Scott Nonnenberg
18c86898d1
OutgoingMessage: Use enqueueSessionJob for all encrypts 2021-05-04 18:03:03 -07:00
Evan Hahn
7c2f233384
Fix blurred avatars in message details 2021-05-04 16:19:36 -07:00
Scott Nonnenberg
c5c667ab1b
Left pane: Ensure pinned conversations show only once 2021-05-04 17:16:59 -05:00
Evan Hahn
b9bc957299
Fix sendToIdentifier error message 2021-05-04 09:44:17 -07:00
Evan Hahn
36d8ef9678
Remove lineNumber from lint exceptions 2021-05-04 09:41:59 -07:00
Scott Nonnenberg
fb00464033
Fine-tuning of conversation lists (compose, forward, left pane) 2021-05-04 09:17:32 -07:00
Scott Nonnenberg
f0b3c43313
Fix a number visual bugs with message forwarding 2021-05-04 09:57:14 -05:00
Evan Hahn
736075322c
Render disappearing message timers generically 2021-05-03 16:24:40 -07:00
Evan Hahn
c1730e055f
Remove 25 trivial WhatIsThis types 2021-05-03 09:38:20 -07:00
Evan Hahn
857a6ab50d
Main header: ensure that your avatar is unblurred 2021-04-30 16:06:18 -07:00
Scott Nonnenberg
cf1eb77ed8
Message Requests: Always open to top of conversation 2021-04-30 15:59:37 -07:00
Evan Hahn
fe772af251
Show "no groups in common" warning for relevant message requests 2021-04-30 15:58:57 -07:00
Evan Hahn
05703c2719
Blur avatars of unapproved conversations 2021-04-30 14:40:25 -05:00
Evan Hahn
bbd7fd3854
Initial support for job queue 2021-04-29 18:02:27 -05:00
Evan Hahn
1238cca538 Ensure group details screen has the latest data 2021-04-29 14:27:38 -07:00
Evan Hahn
bf6487c5b9 Don't mark conversations as unregistered unless there's no UUID 2021-04-29 14:27:37 -07:00
Fedor Indutny
caf1d4c4da GIF attachments 2021-04-29 14:27:37 -07:00
Evan Hahn
5f17d01f49 Take an author object in <Message> 2021-04-29 14:27:37 -07:00
Evan Hahn
bca664b5d9 Make <Avatar> blurrable 2021-04-29 14:27:37 -07:00
Scott Nonnenberg
76dd2026e2 Add test for calculateAgreement 2021-04-29 14:27:37 -07:00
Scott Nonnenberg
7ed54111e2 encryptCdsDiscoveryRequest: Reset offset after writing to array 2021-04-29 14:27:37 -07:00
Evan Hahn
86a01f289d <Message> shouldn't be a PureComponent. It re-renders every time 2021-04-29 14:27:37 -07:00
Evan Hahn
013923d3c1 Remove CDS feature flag 2021-04-29 14:27:36 -07:00
Evan Hahn
e77dcf7f85 Don't create an unnecessary array in conversation batcher 2021-04-29 14:27:36 -07:00
Evan Hahn
a5a64f354f Upgrade Prettier from v2.1.2 to v2.2.1 2021-04-29 14:27:36 -07:00
Evan Hahn
664865c9f1 Rename ConversationModel#getAvatarPath for clarity 2021-04-29 14:27:36 -07:00
Evan Hahn
1f5368742e Add type for ConversationModel profileAvatar 2021-04-29 14:27:36 -07:00
Evan Hahn
2bae019f1a Modernize <Avatar> component code, fix an overflow bug 2021-04-29 14:27:35 -07:00
Evan Hahn
e7ef3de6d0 Profile name spoofing dialog 2021-04-29 14:27:35 -07:00
Evan Hahn
814255c10e DRY up ConversationView callbacks 2021-04-29 14:27:35 -07:00
Scott Nonnenberg
86d2a4b5dd decrypt/encrypt with libsignal-client, remove libsignal-protocol-javascript 2021-04-29 14:27:35 -07:00
Evan Hahn
37ff4a1df4 Fix 1:1 message to/from in search results
See [#5161][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5161
2021-04-29 14:27:35 -07:00
Evan Hahn
885ff5fe42 Show common groups in contact modal 2021-04-29 14:27:35 -07:00
Fedor Indutny
8ac2d8fcec
Mark contact as registered when receiving message 2021-04-29 14:24:55 -07:00
Josh Perez
d91a4ef3a6
Allow forward of image attachment with no text 2021-04-28 15:23:04 -07:00
Fedor Indutny
a76534ed45
Fix FTS trigger for messages with NULL body 2021-04-28 15:22:33 -07:00
Josh Perez
6eba9350be
Do not filter body ranges if there are none 2021-04-28 14:48:52 -07:00
Fedor Indutny
965c635905
Fix z-index of AvatarPopup and limit max width 2021-04-28 15:50:42 -05:00
Josh Perez
353becffac
Various fixes for message forwarding 2021-04-28 15:44:48 -05:00
Scott Nonnenberg
3face767aa
Group settings: on block and leave, don't delete 2021-04-28 16:27:16 -04:00
Fedor Indutny
4978fae69c
Call serverTimestamp.toNumber() for unprocessed 2021-04-28 13:21:11 -07:00
Josh Perez
808c7dfb2d
Fixes storage service validation where id already ArrayBuffer 2021-04-28 15:01:29 -04:00
Josh Perez
d203f125c6
Adds message forwarding 2021-04-27 18:35:35 -04:00
Fedor Indutny
cd489a35fd
sql: use temporary tables for FTS results 2021-04-27 13:24:57 -07:00
Josh Perez
e75bba1c52
Replaces ConfirmationModal with ConfirmationDialog 2021-04-27 15:29:59 -04:00
Fedor Indutny
c9d74654bf
sql: don't update FTS when body didn't change 2021-04-26 17:31:15 -07:00
Fedor Indutny
dd173216ed
sql: speed up fts query, report slow queries 2021-04-26 15:01:22 -07:00
Josh Perez
26b90ba44a
Add return types for two MessageModel "getProps" methods 2021-04-22 09:20:01 -05:00
Josh Perez
5e2d48cc2f
Do not populate left pane on initial link 2021-04-20 19:16:49 -04:00
Fedor Indutny
0b969f3f42
Improve MessageAudio peaks computation
There are two parts to this change:

1. The computation of peaks is moved from `MessageAudio` to the
   `GlobalAudioContext` and thus we can limit the concurrency of the
   computations (`p-queue`!) and de-duplicate the computations as well
2. While the peaks are computed the component has to display spinning
   animation instead of empty waveform and unclickable UI.
2021-04-15 14:02:24 -07:00
Fedor Indutny
2c3911cad0
Use bodyRanges from message whenever available 2021-04-15 13:46:09 -07:00
Quentin Hibon
773fe1521c fix 2021-04-15 21:40:19 +02:00
Quentin Hibon
4568e4904a
Update ts/test-both/state/selectors/search_test.ts
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2021-04-15 21:26:46 +02:00
Quentin Hibon
58d22048b9
Update ts/test-both/state/selectors/search_test.ts
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2021-04-15 21:26:39 +02:00
Fedor Indutny
1746d27b5e
Wait for appView to be there in onEmpty 2021-04-15 11:17:28 -07:00
Scott Nonnenberg
7d55421d8f
Quotes: Check message's conversationId 2021-04-14 15:15:57 -07:00
Evan Hahn
2ee5f57516 Ensure storage is ready before starting sender certificate service 2021-04-14 14:15:26 -07:00
Fedor Indutny
1ca121aef5 Bundle sql worker with webpack 2021-04-14 14:15:26 -07:00
Evan Hahn
31a777a130 Merge branch 'WhyNotHugo-python3' into next-beta 2021-04-14 14:15:24 -07:00
Evan Hahn
c0cc878a64 Merge branch 'hiqua-fix_hanging_search' into next-beta 2021-04-14 14:14:57 -07:00
Evan Hahn
ea6562b7ac Merge branch 'hiqua-no_lower_limit_query' into next-beta 2021-04-14 14:14:57 -07:00
Quentin Hibon
08905e1386 Allow one-character search queries
Related: #5180.
2021-04-14 14:14:56 -07:00
Evan Hahn
1366c93ed8 Fix getUnprocessedCount error message 2021-04-14 12:31:10 -05:00
Fedor Indutny
cb75e8b5f7
Add missing awaits in SQL logging 2021-04-14 10:50:45 -05:00
Fedor Indutny
25458be515
upgrade electron-builder to 22.10.5 2021-04-13 18:27:43 -07:00
Fedor Indutny
a4ff7ae240
Report more performance stats 2021-04-13 16:43:56 -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
Evan Hahn
62f1a42c25
Add reusable <Modal> component, use with <Alert> 2021-04-13 09:20:02 -05:00
Quentin Hibon
38074374f4 Add test 2021-04-10 01:30:16 +02: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
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
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
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
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
2796dfab23 Check charset types in linkPreviewFetch.ts 2021-04-08 23:51: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
Josh Perez
9438b7b3fe
Fixes pinned conversations sync 2021-04-08 15:27:20 -04:00
Quentin Hibon
8abd73fa4f Do not search if normalized query is empty
Fixes #5137
2021-04-08 12:32:44 +02:00
Quentin Hibon
5623bb5906 Fix enveloppe header in search results
Fixes #5158.
2021-04-08 12:02:56 +02:00
Scott Nonnenberg
987d3168e8
GroupV2: Always add profileKeys to newProfileKeys return value 2021-04-07 15:45:31 -07:00
Scott Nonnenberg
a1c534ec0c
Fix CDS fetches; use proper hashing mechanism 2021-04-07 14:27:40 -07:00
Josh Perez
e4db9358cf
Storage service logging same 2021-04-06 15:54:47 -07:00
Josh Perez
d6bb8ae35e
Adds axe-storybook-testing 2021-04-06 16:12:33 -04:00
Evan Hahn
c8dc8a7398 Don't let users leave groups if they're the only admin 2021-04-05 18:08:50 -04:00
Evan Hahn
a7c78b3b23 Storage service: save new AccountRecord fields to disk 2021-04-05 18:08:50 -04:00
Fedor Indutny
6cfb3c9867 Use synchronous crypto for sealed sender 2021-04-05 18:08:50 -04:00
Evan Hahn
d81aaf654f Improve left pane UI when loading search results 2021-04-05 18:08:50 -04:00
Evan Hahn
f05d45ac9b Pressing Esc in left pane composer menu should go back 2021-04-05 18:08:50 -04:00
Evan Hahn
2d35fa8f57 Fix replies to image-only messages 2021-04-05 18:08:50 -04:00
Evan Hahn
b95dd207ca Periodically refresh both sender certificates 2021-04-05 18:08:50 -04:00
Evan Hahn
99928ee831 Move refresh_sender_certificate.js to TypeScript 2021-04-05 18:08:50 -04:00
Evan Hahn
130dac527f Add types for <ConversationHeader>'s mute options 2021-04-05 18:08:50 -04:00
Fedor Indutny
cf50550936 Finish all renderer SQL queries switching to main
Don't switch to main process until all renderer SQL queries are
completed. If we switch while some of them are still running - we can
get SQL_BUSY from concurrent writes in main and renderer processes.
2021-04-05 18:08:50 -04:00
Evan Hahn
eb97c1194a Add Zod for runtime and compile-time type checking, use it in logging code 2021-04-05 18:08:50 -04:00
Evan Hahn
c711fbe0c0 In conversation hero, show “No group in common” if you have no common groups and no phone number 2021-04-05 18:08:50 -04:00
Evan Hahn
63ece2e9b4 Don't set or read reaction target phone number 2021-04-05 18:08:50 -04:00
Evan Hahn
1a9c6b9385 Clean up iterable utilities 2021-04-05 18:08:50 -04:00
Evan Hahn
bd48dea613 Add enum parser utility 2021-04-05 18:08:50 -04:00
Jost Schulte
73a8c3ff95
Fix pip sliding down on click (#5147)
* Fix pip sliding down on click

* Add top margin to PiP intial position

Co-authored-by: Jost Schulte <jost@jibble.io>
2021-04-05 18:06:11 -04:00
Kevin J. Sung
79c94dafd5
set positionFixed in emoji Popper to prevent flipping 2021-04-05 18:05:23 -04:00
Sasha Chedygov
e8fb835857
Prefer higher resolution link preview images
See [#5000][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5000
2021-04-02 15:32:45 -05:00
AsamK
ea7a5449f1
Fix race condition which often prevented sending group call started message
The group call update message after starting a group call is currently only
sent in the onLocalDeviceStateChanged callback. But often the peekInfo is
not available yet when the connection state changes to Joined, effectively
preventing the group call update message to be sent.

This commit also sends the message in the onPeekChanged callback. It is still
only sent at most once, which is ensured by the updateMessageState check.

See [#5001][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5001
2021-04-02 15:32:04 -05:00
Kasia Kosturek
d20cc59a26
getInitials: handle more cases
See [#5029]][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5029
2021-04-02 15:30:49 -05:00
rhklee
8b51f174d8
Remove backslash from search queries
Co-authored-by: Lee Randy <randy.lee@metronom.com>
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

See [#5053][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5053
2021-04-02 15:29:54 -05:00
Jost Schulte
9823eb2201
Fix typos in TypeScript and SCSS files
See [#5136][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5136
2021-04-02 15:28:07 -05:00
Josh Perez
1264e6da2b Retain protections on gv1 records that match gv2 ids 2021-03-30 20:40:48 -04:00
Fedor Indutny
5c8cb6b89b Decrease batcher wait time to speed up startup 2021-03-30 20:40:48 -04:00
Fedor Indutny
6f7ecb141f
filterAndSortContacts should tokenize 2021-03-29 17:19:59 -05:00
Fedor Indutny
79acb7513d
Fix delivery status overflow in sticker messages 2021-03-29 14:34:47 -07:00
Evan Hahn
f157ce2eec
Add "_test" suffix to environment test file 2021-03-29 16:26:49 -05:00
Evan Hahn
ecb76b64a3
Add BORDERLESS and GIF attachment flags to proto 2021-03-29 16:26:20 -05:00