Commit Graph

2282 Commits (51575d2f565892d64d9a0a21f6efc12b2ad13242)

Author SHA1 Message Date
Audric Ackermann 6f5bca6660
allow more characters to be used in display name
We just deny the one used to add markers around a mentions on the
desktop client. which is ᅭ

Relates #2132
3 years ago
Audric Ackermann 00d2bbc63d
cleanup MessageSearchResults 3 years ago
Audric Ackermann 792c23da87
cleanup scroll to unread of quote or search result on open 3 years ago
Audric Ackermann d269693544
cleanup search of contacts excluding not active 3 years ago
Audric Ackermann a3be2c347d
fixup open convo on search, quote click or hit the bottom 3 years ago
audric a21751c611
open convo on last unread, and can scroll up 3 years ago
warrickct fb862fe451 Updating message request overlay styling 3 years ago
warrickct 31f4e294c6 Altering message request banner styling 3 years ago
audric 12b00720f4 split up load more messages from top or bottom
also split up just fetching the last messages from fetching based on
unread/ lastTopMessageId
3 years ago
audric 83d27ed3b7 update quoted message to animate to have border-green instead of bg green 3 years ago
audric 62f0edf8cb cleanup console.warn calls 3 years ago
audric 247cb7c065 cleanup dependencies 3 years ago
audric e515ce3ca5 Merge remote-tracking branch 'upstream/clearnet' into cleanup-attachment 3 years ago
Audric Ackermann 15ae511bca
Merge branch 'clearnet' into small-refactor 3 years ago
burtonemily ffdf2519ca
Integration test (#2128)
* Testing playwright for Desktop automation

* converting tests from javascript to typescript and finishing create user automated test

* Trying to delete app data when test finishes, not through UI

* Undoing the code for clear database once test completes

* Creating POM for cleanup function

* cleanup function for playwright tests

* Creating a new user function, open electron function and clean up function

* fixes user object for new user function

* Adds a login function and start of send message test

* Creating test for sending messages, logging in and adding in data test id tags

* add more data-testid field

* updates new contact test, to have multiple windows and users running simultaneously

* updating clean up and new user test

* Fixing issues with creating new user

* new contact test

* New test to check password functionality

* make sure to cleanup data before running tests

* New group creation test and sending message function

* Adding new automated test for sending message to a contact

* create group test and updating new contact test to include date in test message

* updating package.json to remove webdriver and chromedriver and spectron

Co-authored-by: Audric Ackermann <audric@loki.network>
3 years ago
Audric Ackermann 6a403afb41
Merge pull request #2139 from warrickct/global-search-progress
Global Search and Database Trimming
3 years ago
warrickct 04241daa08 Fixin linting errors. 3 years ago
Audric Ackermann f07aba72df
Merge pull request #2136 from Bilb/global-search-off-clearnet
Global search off clearnet
3 years ago
warrickct 804c9a56b9 convert to functional component. Tweak colors for search results. Fix search result header incorrect color. Addressing PR comments from previous search branch. Experimenting trimming approaches. 3 years ago
audric e97ac5d7c7 make the DL spinner a styled component 3 years ago
audric 72409e3f1f make sure to keep error state of attachment DL failing 3 years ago
audric 8159613626 make sure we do not useInterval if not expiring for expiretimer 3 years ago
audric cea2c2460a make sure screenshot of video attachment is saved locally 3 years ago
audric 9f0ae00317 fix up types for link preview generations 3 years ago
audric 131195e2de add another type for when an outgoing attachment was imported to app 3 years ago
audric 3338a3c75b remove fetching of description for link preview as we do not send it 3 years ago
audric 8feecb777b make sure to scale dowm preview in composition box 3 years ago
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 3 years ago
Audric Ackermann 6992305e27
cleanup last commit 3 years ago
Audric Ackermann 4349b699cb
remove schemaVersion field and logic from message object 3 years ago
Audric Ackermann 580a59ba3c
refactor menu items to react components 3 years ago
warrickct 3f4db67c1b Merge branch 'clearnet' into global-search-off-clearnet 3 years ago
Audric Ackermann 1c46d81a20
rename authorPhoneNumber to what ever makes more sense 3 years ago
Audric Ackermann 46d838218d
remove unused .md files for components 3 years ago
Audric Ackermann 62edcb0cc8
fetch translations from crowdin 3 years ago
Audric Ackermann 44c44ec174
Merge pull request #2122 from Bilb/remove-dedupe-by-hash-sogs
Remove dedupe by hash sogs + update electron
3 years ago
Audric Ackermann 72f4c284d9
Merge pull request #2121 from Bilb/no-delete-auth-token-pysogs
No delete auth token pysogs + update electron
3 years ago
warrickct 7846891359 Fix linting errors 3 years ago
warrickct 2122214ee4 Fixed contact names not showing for search results 3 years ago
warrickct 374d5a6619 Global search partially functioning, added basic functions for load testing performance. 3 years ago
Audric Ackermann 790120f484
add data-testid to sessionIdEditable 3 years ago
Audric Ackermann 0e39b6b152
minor rename 3 years ago
Audric Ackermann 7b103226be
add 'contact' or 'group' to delete action menu
Fixes #2066
3 years ago
Audric Ackermann 7b45635296
do not call home/end events if target is textbox
Closes #2114
3 years ago
Audric Ackermann 7033f38928
Merge pull request #2117 from Bilb/use-variable-for-settings-key
use variables for common settings key
3 years ago
Audric Ackermann 2822f8ddd2
Merge pull request #2116 from Bilb/move-confirm-right-dialogs
Move confirm right dialogs
3 years ago
Audric Ackermann dd52ad336f
use variables for common settings key
also turn off typing message by default
3 years ago
Audric Ackermann 7c42400aa2
fix crash of app on rendering pin item 3 years ago
audric 874ca25195 hide the call message on feature flag OFF 3 years ago
Audric Ackermann 18e13b9b98
move confirm action on right on all dialogs 3 years ago
Audric Ackermann e33b6eadc4
bump typescript to 4.5.4 3 years ago
Audric Ackermann 5846caffc4
fix closed group updates undefined on no names (#2092) 3 years ago
Audric Ackermann abd146c4ca
use React Provider for convoListItem (#2088)
this is to avoid passing down the prop to all the components
3 years ago
Audric Ackermann 38325215e6
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>
3 years ago
Audric Ackermann e17b5e0671
Fix attachment dl freeze (#2086)
* fix attachment download freezing app for some opengroups

* make registration page work with smaller height
3 years ago
Audric Ackermann ce1e81a3e3
disable call for now + fix left pane actions overflow (#2085) 3 years ago
Audric Ackermann b68cb07e3e
add crown icon for closed group admins (#2084) 3 years ago
Audric Ackermann 58dc3e26ca
reactify group updates text bubble from redux store (#2083) 3 years ago
Warrick 5fb3237d1a
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.
3 years ago
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
3 years ago
Audric Ackermann 95e40c9509
keep read-receipts disabled by default (#2071) 3 years ago
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
3 years ago
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
3 years ago
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
3 years ago
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).
3 years ago
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
3 years ago
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
3 years ago
Audric Ackermann bef9058ffe
Merge branch 'clearnet' into message-requests 3 years ago
warrickct f17b923add Fixing rimraf transpile bug. Adding PR fixes - icon buttons. 3 years ago
warrickct e32f20d8bc PR changes 3 years ago
Audric Ackermann 1c27ceb2d0
Merge pull request #2045 from Bilb/fix-bug-release-blob-decrypted
Fix bug release blob decrypted
3 years ago
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 3 years ago
warrickct f91e2c4edd Minor PR fixes 3 years ago
warrickct b5df47c2b8 Addressing PR comments 3 years ago
warrickct 9823a700e2 Addressing PR fixes 3 years ago
warrickct 726418887c Addressing PR comments 3 years ago
Audric Ackermann 894349e710
cleanup props passing of avatar and name with a custom hook 3 years ago
warrickct 2d664a2df7 Applying PR changes. 3 years ago
Audric Ackermann 5ba7f20162
speed up fetching closed group's members avatar 3 years ago
Audric Ackermann 7054ba6f36
Merge pull request #2039 from Bilb/dismiss-call-multi-device
Dismiss call multi device
disable deduplication based serverId+sender
3 years ago
warrickct 3602b51986 Fixing up block all logic. 3 years ago
warrickct ac8dbb341b linting and formatting changes 3 years ago
warrickct 043c2fa99f fixing merge conflicts 3 years ago
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 3 years ago
warrickct 2144a3980f Linting and formatting. 3 years ago
warrickct 9c9a43ee97 Adding improvements to message request handling. 3 years ago
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
3 years ago
Audric Ackermann a4daabfa75
add a way to choose the audioouput/mute a webrtc call 3 years ago
warrickct 2e2941ba9b message request refactoring. 3 years ago
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 3 years ago
Audric Ackermann 4ce1b7813a
add data-testid for leftpane sections and edit profile dialog 3 years ago
warrickct 2eab74246b PR changes. Disabling message requests behind feature flags. 3 years ago
Audric Ackermann 453d260d5c
Merge pull request #2027 from Bilb/fix-netwokr-switching
Fix network switching with ongoing webrtc calls
3 years ago
Audric Ackermann 1203f1dc48
remove none state on callState. instead set it to undefined 3 years ago
Audric Ackermann b8d5a1c166
disable audio output switching as this is broken for now 3 years ago
Warrick Corfe-Tan cb5551c1e9 PR changes 3 years ago
Audric Ackermann af7cdfc4b4
Merge pull request #2024 from Bilb/setup-test-playwright
Webrtc calls caller UI +  playwright setup
3 years ago
Audric Ackermann 6625b7c7b6
calls fix cross platforms issue with uuid 3 years ago
Warrick Corfe-Tan 690abb9d52 adding simple PR changes requested. 3 years ago
Warrick Corfe-Tan 6a62437c3e Blocking, accepting on click and accepting on msg send
working across clients.
3 years ago
Audric Ackermann 8c9832f118
add a toggle audio output button 3 years ago
Audric Ackermann 25c7a2febd
data extraction notification on a line rather than a column 3 years ago
Audric Ackermann cca1b4dabe
add a button to start a video call 3 years ago
Audric Ackermann ef25e5956f
add a spinner for when video call video is loading 3 years ago
Audric Ackermann f91ed7729b
cleanup SessionCompositionBox 3 years ago
Audric Ackermann 3741e96c61
show input toggles in fullscreen mode too 3 years ago
Audric Ackermann 9951d7947b
topright position for initial draggable call container 3 years ago
Audric Ackermann 8df85441f7
fix video stream not displaying in draggable container 3 years ago
Audric Ackermann bfe8f973b5
Merge pull request #1995 from ianmacd/pr3
Make the [Home] and [End] keys scroll the conversation.
3 years ago
Audric Ackermann 16ab506eb6
double click on message replies to
Relaes #2006
3 years ago
Audric Ackermann 57449857f6
reject call after 1 minute showing the dialog 3 years ago
Audric Ackermann 4700a0c832
allow to hangup even if current call should already be closed 3 years ago
Warrick Corfe-Tan c3924f85a9 Adding blocking of individual requests and syncing of block to devices. Added approval by replying to a message. 3 years ago
Audric Ackermann 27e87edac2
add a ringing and establishing connection label video calls 3 years ago
Audric Ackermann dd25d9cb7f
fix flickering of video stream on mute/unmute 3 years ago
Audric Ackermann 8618cf75e9
send and handle uuid for multi device calls 3 years ago
Audric Ackermann 864d710460
add a handle to resize the inconvo call video 3 years ago
Audric Ackermann 0f21e12073
make resizable the height of the inconvo call 3 years ago
Audric Ackermann 1f11872870
set fullscreen off when remote stream is muted 3 years ago
Audric Ackermann 25910be0fd
do not display the reveal seed banner if user just used it 3 years ago
Audric Ackermann 390af96514
WIP 3 years ago
Audric Ackermann 03d8a233f4
update fullscreen icon 3 years ago
Audric Ackermann 331dd8edfa
allow fullscreen and add svg fullscreen icon 3 years ago
Audric Ackermann a0b33fbbbb
add hook to listen for video call events 3 years ago
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 3 years ago
Ian Macdonald a32f946332
Make the [Home] and [End] keys scroll the conversation.
[End] will scroll to the end of the current conversation, because the
latest message is always available.

[Home], however, will scroll only to the top of the currently loaded
messages, triggering earlier messages to load. Multiple presses of
[Home] are therefore required to get to the start of the conversation.
3 years ago
Audric Ackermann dfa04c68f4
fix emoji click on button while open closes it
Fixes #1980
3 years ago
Audric Ackermann 6a1f575c46
create a hook for listening for video call events
+ wip fullscreen video calls
3 years ago
Audric Ackermann a45f5f520a
incoming call dialog show avatar + caller name 3 years ago
Audric Ackermann d50d7eb803
our video off => show our avatar 3 years ago
Audric Ackermann 5b57e01186
make sure click to trust sender renders without new lines 3 years ago
Audric Ackermann df5872a5c7
disable settings for video call if featureflag is off 3 years ago
Audric Ackermann dd281de903
cleanup feature flags 3 years ago
Warrick Corfe-Tan d57300688e no longer showing empty space for conversations moved from list. 3 years ago
Warrick Corfe-Tan 116cb25b27 fix icon position 3 years ago
Warrick Corfe-Tan 84e12ff42f Alter request button item positioning. 3 years ago
Warrick Corfe-Tan b6c1578262 WIP message request adding todo note. 3 years ago
Warrick Corfe-Tan e405b5ffd9 git stash 4 years ago
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 4 years ago
Warrick Corfe-Tan dcfa286d77 WIP: fixing missing spaces for list items that have been removed. 4 years ago
Audric Ackermann 0ae23875b7
finish cleaning up Settings page 4 years ago
Audric Ackermann a596531c57
cleanup SessionSettings by making them less a IdoEverything 4 years ago
Audric Ackermann f74ce2a3ae
msg with attachments gets no bigger than the attachment container 4 years ago
Audric Ackermann 251309656b
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls-p2 4 years ago
Audric Ackermann 99b139f5c4
split settings folder and start adding the settings for video call 4 years ago
Warrick Corfe-Tan c3f20aceb2 WIP message requesting. Banner styling finished. 4 years ago
Audric Ackermann 55313deb91
add a show user details option in the menu
Fixes #1971
4 years ago
Audric Ackermann 5c7615d205
removed old fileserver support 4 years ago
Audric Ackermann ae8688bf2a
cleanup UI for missed call messages in msg list 4 years ago
Audric Ackermann bd45f47a2b
Merge pull request #1977 from Bilb/link-pgup-down-on-message-list
Link pgup down on message list
4 years ago