Commit Graph

387 Commits (db9fa1421374a67d30fb5e57d8a470139529e6e6)

Author SHA1 Message Date
warrickct 1ca66e6bcf Fix read receipts being considered as inferred request approvals. Fix preventing subsequent request messages from reactivating the request banner. 3 years ago
warrickct c5afcb72df stack tracing 3 years ago
warrickct c2722ed87f fixing linting errors. 3 years ago
warrickct 08ba24c3c9 refactoring 3 years ago
warrickct 2b42290bca Fixing case where restoring device restores declined message requests. 3 years ago
warrickct 9338f2fc20 Fixed issue preventing approval message being shown as approval was set before handling config messages ending the handling early. 3 years ago
warrickct 2b84a53959 Fixed conditional stopping sync of convo approval from firing due to inferred approval from polled messages with incoming direction. 3 years ago
warrickct 2258c6da4c Fixing linting errors. 3 years ago
warrickct 5002a77e60 Dont send typing message to unapprove conversations. 3 years ago
warrickct 8ba0020a6c Add extra conditional for more than 1 message in the same chat. 3 years ago
warrickct 9bbac225ad Remove prevention of sending more than one message for an unapproved conversation. 3 years ago
warrickct c0622d47f4 Disallow disappearing messages if convo is not approved by recipient. 3 years ago
warrickct dcd78e85f6 QA fix - msg request accept buttons showing at wrong stage. 3 years ago
warrickct e049934510 Handling approval edge cases for restoring devices. 3 years ago
warrickct bfec321da7 PR changes 3 years ago
warrickct abc188e889 Additional PR changes 3 years ago
warrickct efa482b002 adding pr changes 3 years ago
warrickct 893f7e99b8 Merge branch 'clearnet' into message-request-ui 3 years ago
warrickct 3138279a8d remove unapprove 3 years ago
warrickct 6a02846829 Correcting merge errors. 3 years ago
warrickct ee9156d4f8 Merge clearnet into message-request-ui 3 years ago
warrickct bc6edd7774 Adding unhiding of message request banner when receiving a new convo request. 3 years ago
warrickct 07f6681aae Refactoring subcomponents. Adjusting conditional inbox filters to always apply msg request logic. 3 years ago
warrickct ac8c4ac2eb Removing msg req feature flag. 3 years ago
warrickct 8a8a5ca82c removing pubkey from message request response. 3 years ago
warrickct f93a2e5fad Adding more PR review changes. 3 years ago
warrickct 36ca2a767c Adding PR changes 3 years ago
warrickct 02cf6fea2b minor styling fixes 3 years ago
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 3 years ago
Audric Ackermann 1efe6ca728
click oin @ bring to latest mention 3 years ago
Audric Ackermann 42ccf06ff0
fetch last active users quicker on convo changes to public convo 3 years ago
Audric Ackermann a3eb80abcf
fix group updates outgoing message status in left pane 3 years ago
Audric Ackermann d6a8f5e92b
allow searching for nickname or name for contacts 3 years ago
Audric Ackermann ceb5317160
remove profile_images as we are not using it 3 years ago
Audric Ackermann 1eba9dce30
merge messagesChanged and messagesAdded to a single redux event 3 years ago
Audric Ackermann 9000c649f8
remove optional setToExpire and UnreadMessageIsAbove indicator 3 years ago
Audric Ackermann 7d9f970b2c
remove decrypted_at field from saving message models as unused 3 years ago
Audric Ackermann b3a8692240
cleanup incoming message creation for displaying messageresult 3 years ago
Audric Ackermann 5afbd9c19e
cleanup creation of opengroup message on sync 3 years ago
Audric Ackermann 5e314e4dcc
remove 'recipients' message field and 'destination'
we do not need recipients as it makes no sense for us having medium
groups on the same pubkey

we do not need destination as it can always be guessed from the
direction and the type of conversation of that message
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 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. 3 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
audric e72885944b use selector to sort and add first of serie flag 4 years ago
audric 6d34a60f94 improve performance by not loading all unread messages 4 years ago
audric 4f5072ee65 Merge remote-tracking branch 'upstream/clearnet' into perf-improv 4 years ago
audric b7df0788c2 move mentions state to the ConversationState 4 years ago
audric 23e9a6d31c move some actions to redux in hooks 4 years ago
Brice-W 9a420f85ce fixes 4 years ago
Brice-W 74147d8c3d Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into focus-issue 4 years ago
Brice-W 4f98917eaf clean 4 years ago
Brice-W 1397107dff fix issues 4 years ago