Commit graph

11044 commits

Author SHA1 Message Date
audric fe269a0cfe make sure to update displayName even if avatar failed to DL 2022-01-13 17:02:53 +11:00
audric 8159613626 make sure we do not useInterval if not expiring for expiretimer 2022-01-13 16:02:02 +11:00
audric cea2c2460a make sure screenshot of video attachment is saved locally 2022-01-13 16:00:23 +11:00
audric 9f0ae00317 fix up types for link preview generations 2022-01-13 12:21:50 +11:00
audric 131195e2de add another type for when an outgoing attachment was imported to app 2022-01-13 09:57:49 +11:00
audric 3338a3c75b remove fetching of description for link preview as we do not send it 2022-01-13 09:57:26 +11:00
audric 8cec9c61b7 remove thumbnail from protobuf as it is unused on all platforms 2022-01-12 19:15:52 +11:00
audric 1c8e81d8e6 make sure to store generated thumbnail with the attachment message 2022-01-12 18:56:33 +11:00
audric 8feecb777b make sure to scale dowm preview in composition box 2022-01-12 18:38:52 +11:00
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 2022-01-12 17:01:32 +11:00
Audric Ackermann 6992305e27
cleanup last commit 2022-01-07 10:53:44 +11:00
Audric Ackermann 4349b699cb
remove schemaVersion field and logic from message object 2022-01-07 10:32:58 +11:00
warrickct 3f4db67c1b Merge branch 'clearnet' into global-search-off-clearnet 2022-01-06 11:10:06 +11:00
Audric Ackermann 44c44ec174
Merge pull request #2122 from Bilb/remove-dedupe-by-hash-sogs
Remove dedupe by hash sogs + update electron
2022-01-05 14:02:44 +11:00
Audric Ackermann 72f4c284d9
Merge pull request #2121 from Bilb/no-delete-auth-token-pysogs
No delete auth token pysogs + update electron
2022-01-05 14:02:01 +11:00
Audric Ackermann 7eb96dea26
Merge pull request #2120 from Bilb/update-electron-13.6
Update electron 13.6
2022-01-05 14:01:41 +11:00
warrickct 7846891359 Fix linting errors 2021-12-22 13:48:19 +11:00
warrickct 2122214ee4 Fixed contact names not showing for search results 2021-12-22 11:27:53 +11:00
warrickct 374d5a6619 Global search partially functioning, added basic functions for load testing performance. 2021-12-22 11:20:29 +11:00
Audric Ackermann 681eeb3b96
Merge pull request #2123 from Bilb/add-data-testid-editable
add data-testid to sessionIdEditable
2021-12-22 11:16:32 +11:00
Audric Ackermann 790120f484
add data-testid to sessionIdEditable 2021-12-22 11:15:31 +11:00
Audric Ackermann 0e39b6b152
minor rename 2021-12-22 11:11:37 +11:00
Audric Ackermann 054059e589
Merge pull request #2119 from Bilb/update-translations
Update translations
2021-12-21 16:00:22 +11:00
Audric Ackermann 28892ce8cc
remove the deduplication by hash for opengroup messages
Relates #2069
2021-12-21 15:41:49 +11:00
Audric Ackermann 1a8a839ba3
no need to deleteAuthToken anymore for opengroupv2 servers 2021-12-21 15:39:46 +11:00
Audric Ackermann 7b103226be
add 'contact' or 'group' to delete action menu
Fixes #2066
2021-12-21 13:41:19 +11:00
Audric Ackermann d7424f1b69
update electron to 13.6.2
Relates #2057
2021-12-21 13:34:35 +11:00
Audric Ackermann 326fb0e21c
Merge pull request #2118 from Bilb/fix-home-textbox
do not call home/end events if target is textbox
2021-12-21 10:06:18 +11:00
Audric Ackermann c5f69a2d95
pull translations from crowdin
Relates #2113
2021-12-21 09:56:38 +11:00
Audric Ackermann 6e102644c3
update english translations 2021-12-21 09:49:22 +11:00
Audric Ackermann 7b45635296
do not call home/end events if target is textbox
Closes #2114
2021-12-21 08:40:44 +11:00
Audric Ackermann 7033f38928
Merge pull request #2117 from Bilb/use-variable-for-settings-key
use variables for common settings key
2021-12-21 08:20:10 +11:00
Audric Ackermann 2822f8ddd2
Merge pull request #2116 from Bilb/move-confirm-right-dialogs
Move confirm right dialogs
2021-12-21 08:19:11 +11:00
Audric Ackermann a070827d22
Merge pull request #2115 from Bilb/fix-attachment-decrypt-fail-exception
catch exception when failing to decode/read an attachment
2021-12-21 08:19:01 +11:00
Audric Ackermann dd52ad336f
use variables for common settings key
also turn off typing message by default
2021-12-21 08:16:22 +11:00
Audric Ackermann 4a530582b1
catch exception when failing to decode/read an attachment 2021-12-21 07:58:06 +11:00
Audric Ackermann 1424e13a68
Merge pull request #2112 from Bilb/fix-pin-item-crash
fix crash of app on rendering pin item
2021-12-20 13:29:26 +11:00
Audric Ackermann 7c42400aa2
fix crash of app on rendering pin item 2021-12-20 11:56:34 +11:00
Audric Ackermann cb33b6aaf6
Merge pull request #2110 from Bilb/enable-call
enable calls and bump Session to 1.8.0
2021-12-20 11:24:53 +11:00
Audric Ackermann 8821cb1080
remove old testintegration sample file 2021-12-20 10:47:42 +11:00
Audric Ackermann 3d87f0d5a2
enable calls and bump Session to 1.8.0 2021-12-20 10:16:13 +11:00
Audric Ackermann 5596d72fe8
Merge pull request #2107 from Bilb/fix-call-button-hidden
hide the call message on feature flag OFF
2021-12-18 16:31:57 +11:00
audric 8321e3a55a bump to 1.7.6 2021-12-18 16:24:02 +11:00
audric 874ca25195 hide the call message on feature flag OFF 2021-12-18 16:22:39 +11:00
Audric Ackermann 2afc40e382
Merge pull request #2097 from Bilb/lint
lint
2021-12-17 17:00:47 +11:00
Audric Ackermann 55cca318e7
lint 2021-12-17 17:00:17 +11:00
Audric Ackermann 59ba53df7e
Merge branch 'master' into clearnet 2021-12-17 16:45:45 +11:00
Audric Ackermann 28c88f4d3a
Merge pull request #2096 from Bilb/fix-sync-freeze-on-start
make sure to use cached convos for sync logic
2021-12-17 16:44:18 +11:00
Audric Ackermann eb0cf0938d
make sure to use cached convos for sync logic
otherwise the whole app freezes on a big database
2021-12-17 16:43:16 +11:00
Audric Ackermann 77a3a7417d
Session 1.7.5 (#2094)
* Added message requests disabled for now

* no longer showing empty space for conversations moved from list.

* Added syncing accepting of contact between running instances.

* Adding blocking of individual requests and syncing of block to devices. Added approval by replying to a message.

* fixed typos for translations and method name.

* Blocking, accepting on click and accepting on msg send
working across clients.

* adding setting of active_at to hide unapproved messages.

* adding feature flag for config message receiving

* fix archlinux pw unused issue

on archlinux, the appimage links to the system sqlite by default which
does not support sqlcipher

* hide activeAt = 0 convo from search results

Fixes #2033

* opengroup messages from blocked user are dropped

Fixes #2019

* opengroup messages from blocked user are dropped

Fixes #2019

* dismiss a call when answered from another of our devices

* add data-testid for leftpane sections and edit profile dialog

* update turn servers

* cleanup sessionprotobuf

* move the state of calling to its own slice

* no video track by default and will be turn ON if asked to

* message request refactoring.

* 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...

* auto select the first audio input on connection success webrtc

* add a way to choose the audioouput/mute a webrtc call

* 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

* Adding improvements to message request handling.

* Only updating approval when it is a true value as we consider a block a decline.

* Linting and formatting.

* More formatting and linting

* fixing merge conflicts

* linting and formatting changes

* darken a bit the green of sent message box in light theme

* disable deduplication based serverId+sender

only use the serverTimestamp+sender for searching because
serverId+sender might have false positive

* Fixing up block all logic.

* speed up fetching closed group's members avatar

* Applying PR changes.

* cleanup props passing of avatar and name with a custom hook

* fix a bug releasing the decrypted attachment blobs too early


* Adding trigger logic for conversation filtering of requests.

* Fixing rimraf transpile bug. Adding PR fixes - icon buttons.

* 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

* 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

* 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).

* 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

* 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

* 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

* keep read-receipts disabled by default (#2071)

* 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

* Minor styling fix for large amount of message requests (#2080)

* Minor styling fix for large amount of message requests

* Vertical center fix for message request banner.

* removing top margin from banner again.

* reactify group updates text bubble from redux store (#2083)

* add crown icon for closed group admins (#2084)

* disable call for now + fix left pane actions overflow (#2085)

* Fix attachment dl freeze (#2086)

* fix attachment download freezing app for some opengroups

* make registration page work with smaller height

* Unban UI (#2091)

* adding basic functionaliy for unbanning a user

* merge ban and unban user dialog in to one dialog

Co-authored-by: warrickct <warrickct@gmail.com>

* use React Provider for convoListItem (#2088)

this is to avoid passing down the prop to all the components

* fix closed group updates undefined on no names (#2092)

Co-authored-by: Warrick Corfe-Tan <warrickct@gmail.com>
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
Co-authored-by: Warrick <wcor690@aucklanduni.ac.nz>
2021-12-17 14:18:32 +11:00