Commit graph

220 commits

Author SHA1 Message Date
Scott Nonnenberg
801c70b298
Don't render metadata if message bubble is collapsed 2022-03-23 10:41:38 -07:00
Scott Nonnenberg
04ef741236
Fix rendering of messages with primarily RTL text 2022-03-22 17:12:06 -07:00
Scott Nonnenberg
67702254fb
Message Select: New faster animation, lighter for incoming bubbles 2022-03-22 12:06:08 -07:00
Scott Nonnenberg
c369e44d8e
Fix Contact Modal and improve Debug Log window 2022-03-21 11:41:48 -07:00
Scott Nonnenberg
53ca6672a9
Timeline: Spacing and message selection tweaks 2022-03-17 14:20:40 -07:00
Josh Perez
3620309f22
Show story replies in the timeline 2022-03-16 10:30:14 -07:00
Evan Hahn
6e77d4b2c8
Fix RTL message layout issue 2022-03-10 11:35:48 -08:00
Evan Hahn
4b6b9cce01
Fix timeline not scrolling to bottom reliably 2022-03-08 13:54:27 -08:00
Josh Perez
4e48d7792b
Use a hook for the ever-updating now 2022-03-08 13:11:11 -06:00
Evan Hahn
c527de0a8d
Collapse message bubbles when applicable 2022-03-08 08:32:42 -06:00
Scott Nonnenberg
0a52318be6
Delete for everyone: Track sends and show failure states 2022-03-04 11:22:31 -08:00
Evan Hahn
0c31ad25ef
Remove React Virtualized from <Timeline> 2022-03-03 14:23:10 -06:00
Evan Hahn
9b269cb43f
<Message>: avoid state change when cleaning up reaction root elements 2022-02-28 13:42:51 -08:00
Evan Hahn
052a8e65e2
Add "clean up timer if necessary" utility 2022-02-25 10:37:15 -08:00
Josh Perez
909453b20b
Allow reactions in announcement only groups 2022-02-02 15:01:22 -05:00
Fedor Indutny
26421b8c18
Log conversation open time 2022-01-19 16:40:29 -08:00
Josh Perez
4c85c04d45
Adds all message actions to context menu 2021-12-06 13:52:47 -08:00
Evan Hahn
c88cb62464
Hide "delete for everyone" button for pending messages 2021-12-02 13:28:19 -08:00
Evan Hahn
c63bf11a8f
Show badges in reaction viewer 2021-11-17 22:11:46 +01:00
Evan Hahn
7d17158add
Show badges on message avatars where applicable 2021-11-15 16:53:42 -06:00
Evan Hahn
ede34ecee3
Enable noImplicitOverride TypeScript compiler option 2021-11-12 15:44:20 -08:00
Scott Nonnenberg
edab7c7d83
Remember message Read More state when scrolling in virtualized container 2021-11-11 15:45:47 -08:00
Evan Hahn
5619eeca83
Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
Evan Hahn
74fde10ff5
Prefer import type when importing types 2021-10-26 14:15:33 -05:00
Josh Perez
b32d068e83
Affordances for really tall messages 2021-10-20 15:46:42 -05:00
Evan Hahn
d372b47617
Remove media query from <Message> 2021-10-19 09:24:36 -07:00
Evan Hahn
35a54cdc02
Introduce a new design for the left pane 2021-10-12 16:59:08 -07:00
Evan Hahn
f4b0bade80
Fix avatar focus highlight 2021-10-12 14:07:58 -05:00
Josh Perez
a25690b3bd
Exclude jumbo style for single emoji in quotes or attachments 2021-10-07 20:27:46 -04:00
Josh Perez
7c9b8e919c
Render emoji like a sticker 2021-10-06 10:37:53 -07:00
Josh Perez
87ea95735e
Make triple dot menu work on really small screen widths 2021-10-05 08:58:34 -05:00
Josh Perez
48aaf9e4f3
Fix quote styles so they are uniform 2021-10-04 20:12:07 -04:00
Josh Perez
9a9fc60103
Fix click propagating from reaction viewer to container 2021-10-04 15:56:34 -05:00
Evan Hahn
893a77a3ad
Fix render loop in <Modal>, clean up ref merger code 2021-10-01 16:53:00 -07:00
Fedor Indutny
3534408c97
Fix various clipping issues with message buttons 2021-09-30 16:24:23 -05:00
Fedor Indutny
3e31a7405b Use physical keys+layout for shortcuts 2021-09-29 14:21:15 -07:00
Josh Perez
65ddf0a9e8
Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
Evan Hahn
fda21edd23
Remove unnecessary disables of consistent-return lint rule 2021-09-16 15:25:55 -05:00
Evan Hahn
eed7aff925
Remove unnecessary props from <ContactName> 2021-09-16 11:15:43 -05:00
Evan Hahn
84ac7dd2df
To fix Storybook, make <Message> take renderReactionPicker 2021-09-10 11:00:31 -07:00
Scott Nonnenberg
6efb6da937
Render disappearing message countdown even if deleted for everyone 2021-09-10 09:23:04 -05:00
Scott Nonnenberg
71b50aae00
Message: Don't propagate sender avatar click event 2021-09-07 14:38:32 -05:00
Fedor Indutny
30075f18fc
Fix lightbox for tap-to-view GIFs 2021-09-02 16:38:46 -05:00
Evan Hahn
70d059beeb
Keep reaction poppers visible at all times 2021-08-20 14:36:27 -05:00
Fedor Indutny
fe040a2873
Rename ContactType to EmbeddedContactType 2021-08-19 20:56:39 -05:00
Evan Hahn
b0750e5f4e
Show "unplayed" dot on incoming audio messages 2021-08-12 13:15:55 -05:00
Evan Hahn
9fd191ae00
Add more logging for view-once message interactions 2021-08-12 09:20:22 -07:00
Fedor Indutny
61b7eebfcf
Modernize Benchmarks CI 2021-08-11 12:29:07 -07:00
Fedor Indutny
12c78c742f
Optimize rendering 2021-08-11 09:23:21 -07:00
Evan Hahn
3b476fb60d
Fix tooltip placement bugs by upgrading Popper 2021-08-03 12:04:49 -05:00
Scott Nonnenberg
0ab09711a4
Track performance of message sends 2021-07-30 11:37:03 -07:00
Evan Hahn
14929fb408
Show "unplayed" dot on outgoing audio messages 2021-07-27 10:42:25 -05:00
Fedor Indutny
dd0baf9ab4 Merge branch 'heysujal/development' into development 2021-07-20 13:25:52 -07:00
Josh Perez
aade43bfa3
Allow download of view once images if received in-call 2021-07-19 17:48:07 -04:00
Sujal Gupta
3ef72d537b Unescape HTML encoded entities in link preview 2021-07-19 04:34:34 +05:30
Fedor Indutny
c3bdf3d411
Show lightbox for GIFs 2021-07-14 16:39:52 -07:00
Evan Hahn
831ec98418
Audio messages: move countdown under waveform 2021-07-09 13:27:16 -07:00
Fedor Indutny
2cd4160422
Unify audio playback under App component 2021-06-29 12:58:29 -07:00
Fedor Indutny
6c56d5a5f1
Fix UI for GIFs in groups 2021-06-24 16:00:11 -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
Jordan Rose
9a1f722545
On right-click link in message bubble, show menu to copy 2021-06-14 11:49:12 -07:00
Jordan Rose
befe886a83
Context menu for message bubbles 2021-06-09 15:30:05 -07:00
Fedor Indutny
4c4351df39
Make link preview image clickable 2021-06-03 17:42:01 -07:00
Fedor Indutny
b009967a83
Display proper text when quoting view once message 2021-06-02 09:42:19 -07:00
Josh Perez
28f016ce48
Conversation Colors 2021-05-28 09:15:17 -07:00
Fedor Indutny
986d8a66bc
Show challenge when requested by server 2021-05-05 17:09:29 -07:00
Evan Hahn
05703c2719
Blur avatars of unapproved conversations 2021-04-30 14:40:25 -05: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
86a01f289d <Message> shouldn't be a PureComponent. It re-renders every time 2021-04-29 14:27:37 -07:00
Evan Hahn
a5a64f354f Upgrade Prettier from v2.1.2 to v2.2.1 2021-04-29 14:27:36 -07:00
Josh Perez
d203f125c6
Adds message forwarding 2021-04-27 18:35:35 -04:00
Evan Hahn
2d35fa8f57 Fix replies to image-only messages 2021-04-05 18:08:50 -04:00
Evan Hahn
afe135df0c
Hide long message attachments in quotes 2021-03-25 11:36:50 -07:00
Evan Hahn
6f404648d7
Prefer author ID to phone number for message menu trigger ID 2021-03-24 16:42:08 -07:00
Evan Hahn
77c306843d
Fix error on message details screen with audio messages 2021-03-24 15:06:12 -07:00
Fedor Indutny
9fa3359477
Mark attachment as corrupted if audio load failed
Sending corrupted audio should not leave user with non-functional
UI. Mark attachment as corrupted and show generic attachment UI for it
instead.
2021-03-22 11:51:53 -07:00
Fedor Indutny
d7ec22fb0b Save attachment button should download attachment if needed 2021-03-19 16:57:36 -04:00
Fedor Indutny
05f59f3db1 Add download button and pending spinner for audio messages 2021-03-19 16:57:36 -04:00
Fedor Indutny
529dd1a3cc Show download button for pending Link Preview images 2021-03-19 16:57:36 -04:00
Fedor Indutny
12d7f24d0f New UI for audio playback and global audio player
Introduce new UI and behavior for playing audio attachments in
conversations. Previously, playback stopped unexpectedly during window
resizes and scrolling through the messages due to the row height
recomputation in `react-virtualized`.

With this commit we introduce `<GlobalAudioContext/>` instance that
wraps whole conversation and provides an `<audio/>` element that
doesn't get re-rendered (or destroyed) whenever `react-virtualized`
recomputes messages. The audio players (with a freshly designed UI) now
share this global `<audio/>` instance and manage access to it using
`audioPlayer.owner` state from the redux.

New UI computes on the fly, caches, and displays waveforms for each
audio attachment. Storybook had to be slightly modified to accomodate
testing of Android bubbles by introducing the new knob for
`authorColor`.
2021-03-19 16:57:35 -04:00
Josh Perez
34285054f6
Manual download of attachments with no blurHash 2021-02-11 17:50:11 -08:00
Evan Hahn
8f1bb6f087
Don't render links (or link previews) for blocked or unapproved conversations 2021-02-02 11:09:53 -06:00
Josh Perez
a096220990
Do not download media if in call 2021-01-29 14:58:28 -08:00
Evan Hahn
1da724edf2
Fix missing avatars in groups 2021-01-27 13:15:43 -08:00
Evan Hahn
8a72607fa7 Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
Evan Hahn
4c40d861cf Update link preview styles to better match designs 2021-01-25 18:28:59 -08:00
Evan Hahn
8c25ffd6f5 Link previews: show full size image less often 2021-01-11 14:23:09 -08:00
Evan Hahn
0c99604585 Minor: use clearTimeout instead of clearInterval in <Message> 2020-12-17 12:12:52 -05:00
Scott Nonnenberg
0506b79f6b
Quotes: Use authorId when navigating to original message 2020-12-11 12:06:04 -06:00
Chris Svenningsen
d593f74241
New contact popup when clicking on group member or avatar 2020-11-11 09:36:05 -08:00
Evan Hahn
8bfaf598af Add license headers across the project 2020-11-04 13:03:13 -06:00
Josh Perez
de45db255c Improve context menus 2020-11-04 13:00:40 -06:00
Scott Nonnenberg
04b7a29229 Modern profile sharing in 1:1 and GroupV1 groups 2020-10-26 15:48:44 -07:00
Chris Svenningsen
492bb283ee A few Delete For Everyone fixes
Co-authored-by: Sidney Keese <sidney@carbonfive.com>
2020-10-12 18:10:08 -04:00
Sidney Keese
c3ddedfde1 Reactions: skin tone support 2020-10-12 18:10:08 -04:00
Sidney Keese
866217a724 Delete For Everyone Send
Co-authored-by: Chris Svenningsen <chris@carbonfive.com>
2020-10-12 18:10:08 -04:00
Evan Hahn
313faab774 Outbound link previews 2020-10-12 18:10:08 -04:00
Josh Perez
2d5292b2f3 Render quoted mentions as text 2020-09-21 15:42:51 -04:00