Commit Graph

296 Commits (323b7ec45c67d83829402352877640984d009140)

Author SHA1 Message Date
Audric Ackermann 792c23da87
cleanup scroll to unread of quote or search result on open 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
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 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
audric fc916ce94c Fix attachments duplication on message syncing with current device 3 years ago
audric 72409e3f1f make sure to keep error state of attachment DL failing 3 years ago
audric cea2c2460a make sure screenshot of video attachment is saved locally 3 years ago
audric 1c8e81d8e6 make sure to store generated thumbnail with the attachment message 3 years ago
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 3 years ago
Audric Ackermann 4349b699cb
remove schemaVersion field and logic from message object 3 years ago
Audric Ackermann 1c46d81a20
rename authorPhoneNumber to what ever makes more sense 3 years ago
warrickct 374d5a6619 Global search partially functioning, added basic functions for load testing performance. 3 years ago
Audric Ackermann 6e102644c3
update english translations 3 years ago
Audric Ackermann dd52ad336f
use variables for common settings key
also turn off typing message by default
3 years ago
Audric Ackermann 58dc3e26ca
reactify group updates text bubble from redux store (#2083) 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 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 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
warrickct e32f20d8bc PR changes 3 years ago
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 3 years ago
warrickct b5df47c2b8 Addressing PR comments 3 years ago
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 3 years ago
warrickct 2144a3980f Linting and formatting. 3 years ago
warrickct 23ca19b125 Only updating approval when it is a true value as we consider a block a decline. 3 years ago
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 3 years ago
warrickct 2eab74246b PR changes. Disabling message requests behind feature flags. 3 years ago
warrickct e5a203a48e adding setting of active_at to hide unapproved messages. 3 years ago
Audric Ackermann 1203f1dc48
remove none state on callState. instead set it to undefined 3 years ago
Warrick Corfe-Tan cb5551c1e9 PR changes 3 years ago
Warrick Corfe-Tan 6a62437c3e Blocking, accepting on click and accepting on msg send
working across clients.
3 years ago
Audric Ackermann 29c187c6a0
add a notification on incoming call + an audio playing 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
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
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 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
Warrick Corfe-Tan c3f20aceb2 WIP message requesting. Banner styling finished. 4 years ago
Audric Ackermann 8f3b6d9ab2
add wip of call missed notification 4 years ago
Audric Ackermann 844d3befef
tiny changes on the unsend logic 4 years ago
Warrick Corfe-Tan 123e68c167 WIP: Adding message requests using existing convo list item. 4 years ago
Audric Ackermann 8b611a2867
make call UI react to incoming and ongoing calls 4 years ago
Warrick Corfe-Tan a1601b039e Adding call to convo header menu 4 years ago
Warrick Corfe-Tan 5d4d63c76d Adding partial UI for calls. 4 years ago
Audric Ackermann efebd8ba24
bump to 1.7.2 (#1926)
* do not consider expire timer update unread messages #1881

* cleanup conversation props in redux to only have what cannot be derived

* fix app not starting without the await on convo creation

* cleanup props of message model

* bump to 1.7.2
4 years ago
Warrick 1d459ba533
Unsend messages (only message hashes saving for now is enabled) (#1891)
* WIP unsending message.

* retrieving message with hash from db on receiving unsend request.

* outgoing messages hashes updated on message sent success

* unsend messaging

* unsend message - deleting messages and marking as isDeleted.

* add msg hash to unprocessed records.

* Message unsending working for closed groups provided the message has been updated with a hash from server.

* adding 2-stage confirmation modal for message deletion

* adding rendering of removed incoming messages, disabling rendering of unsent outgoing messages in coversation screen.

* Adding logging

* debugging.

* outgoing only saved for sync message instead of regular message.

* deleting locally

* adding post unsend deletioncode.

* starting adding feature flag.

* Added feature flag.

* addding mandatory messageHash  pollling pipeline methods swarm polling.

* Conversation list item message preview showing deletion placeholder text if deleted.

* add condition to drop unsend requests not send by message author

* refactoring deleteMessage. Saving response hash for closed group message sending

* running yarn ready

* removing logging.

* Adding PR fixes

* Minor changes and running yarn ready

* fix typo

* Moved feature flag to lokiFeatureFlags. Fixing linting errors


Co-authored-by: Audric Ackermann <audric@loki.network>
4 years ago
Audric Ackermann b17312c13c
Cleanup redux store (#1925)
* do not consider expire timer update unread messages #1881

* cleanup conversation props in redux to only have what cannot be derived

* fix app not starting without the await on convo creation

* cleanup props of message model
4 years ago
Audric Ackermann b45109985c
use timestamp offset in for messages storage requests (#1892)
* add using timestamp offset from network for sending part1

* remove MessageController as we now rely on the database

* fix tests for message sending overriding timestamp
4 years ago
audric bd7d88e170 remove theme from css and used variables instead 4 years ago
audric 62764d25f6 showDate break on > 5 minutes diff between messages 4 years ago
audric 714024fb1f fix notification icons 4 years ago
audric 7fa50b4a73 do not pass props not needed between message list components 4 years ago
audric 38665e105a remove search messages frpm search result 4 years ago
audric f9988119f9 major UI rewrite of messages view with redux improvements 4 years ago
audric f7b0c6c7e1 make conversation screen closer to mobile UI part1 4 years ago
audric 7b93d5df9a fix caption for attachments not displayed once sent 4 years ago
audric de1475b3bb fix slow sending of opengroup message 4 years ago
Audric Ackermann a3edb99549
Merge pull request #1856 from Bilb/fix-attachment-since-electron-upgrade
Fix attachment since electron upgrade
4 years ago
audric 8a19b50c0f fix attachment not being uploaded since electron upgrade 4 years ago
Brice-W a89c6710fb Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into link-previews 4 years ago
audric 43aeacb9c9 fix saving empty list of read messages error 4 years ago
Brice-W 384eecd9dc allow receiving link previews when sending is disabled 4 years ago
audric 9e37985d03 enable no-unused local and imports and fix tslint 4 years ago
audric 1eb2e59d62 amke sure to reset link previews when replacing the text in composition 4 years ago
audric b05910e219 Merge remote-tracking branch 'upstream/clearnet' into add-message-bottom-keep-scroll 4 years ago
audric bea704ecf0 bump react to 17 4 years ago
Audric Ackermann f7658c323d
Merge pull request #1821 from Brice-W/bug-fixes
Bug fixes
4 years ago
Brice-W f7c7d6a3d8 change source of MessageAttributesOptionals to not null 4 years ago
Brice-W 4ba0154e06 set expireTimer to 0 by default 4 years ago
Audric Ackermann 9b98b32d1b
filter out duplicates only if they are less than 10 messages away 4 years ago
Audric Ackermann 2c174bdac7
fix audio message autoplay as broken with perf improvements
fix bug making "trust contact" first audio message being played on click
to trust
4 years ago
Audric Ackermann 360cb52680
make all messages types a readable message 4 years ago
Audric Ackermann 3f065a7b0e
improve marking message as read with hooks 4 years ago
Audric Ackermann dbd6563fa0
consider that a reply to our message is a mention for notification 4 years ago
Audric Ackermann 12d09bc896
preload messages when switching conversation 4 years ago
Audric Ackermann f9ecfccc0a
batch UI updates of message added events 4 years ago
Audric Ackermann 2a371d3c57
Merge pull request #1794 from Bilb/fix-profile-key-config-message
Fix profile key config message
4 years ago
audric fce86989f0 make sure profileKey is a hex string in all convos 4 years ago
Audric Ackermann 77a6be3432
Merge pull request #1793 from Brice-W/group-edition-fix
Fix for name change and adding members in groups
4 years ago
Brice-W a6aed4d7d1 fix isAdmin to return the right value for closed groups 4 years ago
audric 9f62d6577c remove unused accessKey derived from profileKey 4 years ago
audric 5b487b0fec Merge remote-tracking branch 'upstream/clearnet' into disable-search-for-now 4 years ago
audric 4b8778d071 fix markRead using timestamp of now when scroll to bottom 4 years ago
Brice-W 54a2eef700 change the way skipTimerInit is defined in MessageModel 4 years ago
Brice-W bec9bd553e Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into filter-expired-messages 4 years ago
Brice-W d7eafb7e15 rollback changes 4 years ago
Brice-W 72868c10e5 clean 4 years ago
Brice-W beca14982c manage expired nessage deletion in setExpired 4 years ago
audric bfc4b2b720 lint 4 years ago
audric 588ae85cda fix at lat types for attachment 4 years ago
Brice-W 6bbabce8e3 fix async issue 4 years ago
audric 12ff3379e1 add key for all messages list so we can scroll to them programnatically 4 years ago
Brice-W e5615357f7 call setToExpire when expire timer is started to set expire_at property of message 4 years ago
audric 8766cf3f8a store offset before refresh of messagesList and restore it 4 years ago
audric c8f0150aaf fix unread banner position when first unread is visible 4 years ago
audric c2b5ac68d6 don't rely on scrollheight to calculate for ui Updates
as it causes a layout complete refresh
4 years ago