Commit Graph

10981 Commits

Author SHA1 Message Date
Audric Ackermann 28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00
Audric Ackermann 95e40c9509
keep read-receipts disabled by default (#2071) 2021-12-08 17:44:24 +11:00
Audric Ackermann 48e7a0e25f
Various UI fixes (#2070)
* cleanup unused convo json fields in db

* display a toast if the user is not approved yet on call OFFER received

* enable CBR for calls

* do not update active_at on configMessage if !!active_at

* remove mkdirp dependency

* disable call button if focused convo is blocked

* quote: do not include the full body in quote, but just the first 100

* click on the edit profile qr code padding

* Allow longer input for opengroup join overlay

Fixes #2068

* Fix overlay feature for start new session button

* make ringing depend on redux CALL status

* turn ON read-receipt by default
2021-12-08 14:15:54 +11:00
Audric Ackermann 273d866b98
Cleanup message request (#2063)
* close incoming call dialog if endCall from seame sender

* disable message request toggle if featureFlag is OFF

* cleanup UI of message requests

* mark all existing conversations as approved in a migration

* fix regex with conversationID for opengroups
2021-12-02 16:22:14 +11:00
Audric Ackermann 1a699879cf
Add call duration (#2059)
* add call duration once connected

* close incoming call dialog if endCall from same sender

* disable message request toggle if featureFlag is OFF
2021-12-02 11:13:47 +11:00
Jason Rhinelander 1ec637b551
Open group regex fixes (#2058)
* Open group URL regex fixes

- Capital letters in room tokens were not being accepted (it eventually
  gets lower-cased internally, which works fine, but that happens
  *after* the URL is tested for acceptability).
- `-` in room was not being allowed (it is and always has been on SOGS,
  session-android, and session-ios).
- single-letter room ids are valid, but only 2+ letter ids were being
  accepted.
- complete URL regex wasn't anchored so something like
  `garbagehttps://example.com/room?public_key=<64hex>moregarbage` was
  being accepted in the GUI input (it fails later when other code tries
  to parse it as a URL).
- removed `m` modifier from open group regex: without anchors it wasn't
  doing anything anyway, but *with* anchors it would still allow
  leading/trailing garbage if delineated by newlines.
- public key regex was accepting g-z letters, and not accepting A-F.
- various regex cleanups:
  - use non-capture groups (?:...) rather than capturing groups (...)
  - avoid repetition in host segment matching
- tightened up host pattern matching a bit:
  - DNS host segments have a max length of 63
  - Limit port max length to 5, and disallow starting with 0

* Show an error when the open group URL is invalid

It's quite disconcerting when you have a bad open group URL and try to
add it and the join button just "doesn't work" without any feedback at
all.  Fix it to show an error message.  (There is already an i18n entry
for this because this same message is thrown if the URL can't be parsed
later on).
2021-12-01 10:14:18 +11:00
Audric Ackermann 651b1c4376
Fetch translations (#2056)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety

* add type for i18n to run update after crowdin  fetch with tools/updateI18nKeysType.py

* update to latest translations
2021-11-30 14:46:06 +11:00
Audric Ackermann cf44896a03
Minor call tweaks (#2051)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety
2021-11-29 17:40:46 +11:00
Audric Ackermann 56d58a35e5
Merge pull request #2000 from warrickct/message-requests
Message requests
2021-11-29 17:06:26 +11:00
Audric Ackermann bef9058ffe
Merge branch 'clearnet' into message-requests 2021-11-29 16:28:34 +11:00
warrickct f17b923add Fixing rimraf transpile bug. Adding PR fixes - icon buttons. 2021-11-26 15:29:57 +11:00
warrickct e32f20d8bc PR changes 2021-11-26 13:20:03 +11:00
Audric Ackermann 1c27ceb2d0
Merge pull request #2045 from Bilb/fix-bug-release-blob-decrypted
Fix bug release blob decrypted
2021-11-26 10:28:49 +11:00
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +11:00
warrickct c3e58f725e Adding trigger logic for conversation filtering of requests. 2021-11-24 15:37:22 +11:00
warrickct f91e2c4edd Minor PR fixes 2021-11-24 13:55:16 +11:00
warrickct 97fe0c7a7a Merge branch 'clearnet' into message-requests 2021-11-24 13:37:18 +11:00
warrickct b5df47c2b8 Addressing PR comments 2021-11-24 13:36:51 +11:00
warrickct 9823a700e2 Addressing PR fixes 2021-11-24 11:14:24 +11:00
warrickct 726418887c Addressing PR comments 2021-11-24 09:32:07 +11:00
Audric Ackermann faeb6e206a
fix a bug releasing the decrypted attachment blobs too early 2021-11-23 16:18:52 +11:00
Audric Ackermann 894349e710
cleanup props passing of avatar and name with a custom hook 2021-11-23 16:18:27 +11:00
warrickct 2d664a2df7 Applying PR changes. 2021-11-23 16:03:24 +11:00
Audric Ackermann 5ba7f20162
speed up fetching closed group's members avatar 2021-11-23 15:18:46 +11:00
Audric Ackermann 7054ba6f36
Merge pull request #2039 from Bilb/dismiss-call-multi-device
Dismiss call multi device
disable deduplication based serverId+sender
2021-11-23 13:16:37 +11:00
warrickct 3602b51986 Fixing up block all logic. 2021-11-23 11:00:11 +11:00
Audric Ackermann af75b6f0e2
disable deduplication based serverId+sender
only use the serverTimestamp+sender for searching because
serverId+sender might have false positive
2021-11-23 10:32:11 +11:00
Audric Ackermann 8fea533124
darken a bit the green of sent message box in light theme 2021-11-23 09:50:17 +11:00
warrickct ac8dbb341b linting and formatting changes 2021-11-22 17:36:23 +11:00
warrickct 043c2fa99f fixing merge conflicts 2021-11-22 17:25:28 +11:00
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 2021-11-22 17:24:53 +11:00
warrickct f0161ec338 More formatting and linting 2021-11-22 16:59:43 +11:00
warrickct 2144a3980f Linting and formatting. 2021-11-22 16:48:30 +11:00
warrickct 23ca19b125 Only updating approval when it is a true value as we consider a block a decline. 2021-11-22 16:18:19 +11:00
warrickct 9c9a43ee97 Adding improvements to message request handling. 2021-11-22 15:48:12 +11:00
Audric Ackermann e716f73d6c
mute audio from bg when video is in fullscreen
this is to avoid having two times the remote sound playing
one in the bg and one in the fullscreen
2021-11-22 15:28:27 +11:00
Audric Ackermann a4daabfa75
add a way to choose the audioouput/mute a webrtc call 2021-11-22 15:04:43 +11:00
Audric Ackermann 53289298a9
auto select the first audio input on connection success webrtc 2021-11-22 14:39:38 +11:00
Audric Ackermann d5f6180ae6
create offer and answer ourselves and do not use the negotiation needed
event.

this event is causing us to loop in negotiation needed when each side
try to create one, gets the answer and so on...
2021-11-22 14:36:02 +11:00
warrickct 2e2941ba9b message request refactoring. 2021-11-22 12:08:48 +11:00
Audric Ackermann 1dff310820
no video track by default and will be turn ON if asked to 2021-11-19 13:27:16 +11:00
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +11:00
Audric Ackermann 80566fd60e
cleanup sessionprotobuf 2021-11-19 10:46:45 +11:00
Audric Ackermann 2f49228317
update turn servers 2021-11-19 09:27:52 +11:00
Audric Ackermann 4ce1b7813a
add data-testid for leftpane sections and edit profile dialog 2021-11-18 11:36:14 +11:00
Audric Ackermann fcff08b1c2
Merge pull request #2036 from Bilb/fix-search-result-inactive-convo
Fix search result inactive convo
2021-11-17 16:03:22 +11:00
Audric Ackermann b6eb5ceaf2
Merge pull request #2035 from Bilb/fix-archlinux-pw
fix archlinux pw unused issue
2021-11-17 16:02:43 +11:00
Audric Ackermann c1471426ac
dismiss a call when answered from another of our devices 2021-11-17 16:01:33 +11:00
Audric Ackermann 7b0587876f
opengroup messages from blocked user are dropped
Fixes #2019
2021-11-17 10:38:44 +11:00
Audric Ackermann 465508b2ae
opengroup messages from blocked user are dropped
Fixes #2019
2021-11-17 10:37:40 +11:00