Commit Graph

387 Commits (db9fa1421374a67d30fb5e57d8a470139529e6e6)

Author SHA1 Message Date
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
Brice-W db46c2960b update in marking read message 4 years ago
Brice-W c38d2a5ea7 revert prev changes + marking read now based on received_at 4 years ago
Audric Ackermann a54345a42e
put back quote a message logic with hook 4 years ago
Audric Ackermann 9a380b716b
put saveAttachemntToDisk outside of component 4 years ago
Audric Ackermann 16d34a7137
moved conversations reducer to createSlice 4 years ago
Audric Ackermann 63b81b4c8e
cleanup SessionMessageList p1 4 years ago
Brice-W 5d7d58fe05 move NotificationForConvoOption declaration + getConversationNotificationSettingType created as used twice 4 years ago
Brice-W adab2b4506 add Notifications in conversations context menu 4 years ago
Brice-W 14ef4cd39a adding lastReadTimestamp property 4 years ago
Audric Ackermann e8f0c4aaec
move libloki to webworker and remove unused stuff in it 4 years ago
Brice-W 151fc758c0 format 4 years ago
Audric Ackermann 5b0b165ba9
Merge remote-tracking branch 'upstream/clearnet' into perf-improv 4 years ago
Audric Ackermann 9a302fb5ff
add a cache of the keypairs for a closed group 4 years ago
Audric Ackermann 7cc7db5d4a
batch conversaiton UI refreshes 4 years ago
Audric Ackermann f0fad6edfa
uniformized props for Message 4 years ago
Audric Ackermann ee4a0b9b1e
cleanedup redux action openConversationExternal 4 years ago
Audric Ackermann 7f76ab274c
added a hook to fetch avatar of closed group members 4 years ago
Brice-W c3bf2a4e96 fixes and tests 4 years ago
Audric Ackermann e451cdd78f
rename message props to messageProps 4 years ago
Audric Ackermann c8aa73626e
do not load right panel data unless it is visibl 4 years ago
Audric Ackermann f0db797a9a
fix loading of messages props 4 years ago
Audric Ackermann 672eb91975
add types for message props and remove props function calls msg 4 years ago
Audric Ackermann 6deb97dbc0
WIP 4 years ago
Audric Ackermann a0afd3efe4
add some performance measure for commit calls 4 years ago
Warrick Corfe-Tan 4decda9cff Merge branch 'clearnet' into pin-conversations 4 years ago
Warrick Corfe-Tan 563dff64ae yarn linting and formatting, 4 years ago
Warrick Corfe-Tan 36cf05db1b Switched conversation pin state. 4 years ago
Warrick Corfe-Tan 08db057ad9 Merge branch 'clearnet' into pin-conversations 4 years ago
Warrick Corfe-Tan 49415e3bf0 Yarn formatting and linting. 4 years ago
Audric Ackermann 504a9afc0a
fix up handling of clock out of sync 4 years ago
Audric Ackermann 19555b99a0
Merge pull request #1723 from Bilb/poll-less-often-group-not-active
Poll less often group not active
4 years ago
Warrick Corfe-Tan 6dd7f34e4d Pin conversations WIP. Pinning functioning and persisting on conversation list. 4 years ago
Warrick Corfe-Tan 210ca13271 Merge branch 'clearnet' into audio-messages-play-all 4 years ago
Audric Ackermann 51e5ded36b
auto download attachment in closed group 4 years ago
Audric Ackermann 7ea30b70ca
variable swarm polling based on activeAt timestamp 4 years ago
Warrick Corfe-Tan fc31f8d2b1 Merge branch 'clearnet' into audio-messages-play-all 4 years ago
Audric Ackermann 712f76a53c
Merge remote-tracking branch 'upstream/clearnet' into remove-conversationct-singleton 4 years ago
Audric Ackermann 9e5d33d849
trigger download for past messages when trusting contact 4 years ago
Audric Ackermann e9e718bfcb
remove getInstance on MessageController=> getMessageController 4 years ago
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 4 years ago
Warrick Corfe-Tan 856ced056a Minor tidying. 4 years ago
Warrick Corfe-Tan d35f3f9e62 WIP: audio autoplay working with consecutive messages. Next step store state on shutdown and rename variables. 4 years ago
Audric Ackermann 09d9db38e8
move taskWithTimeout to typescript 4 years ago
Audric Ackermann 788493e856
remove some unused props for messages 4 years ago
Audric Ackermann a659d5b480
fix open group invitation logic 4 years ago
Audric Ackermann 9ed030fac6
fix moderator add/remove 4 years ago
Audric Ackermann 93e43fe929
move conversation dialogs to redux store 4 years ago
Audric Ackermann c9d7f4a1ab
Merge remote-tracking branch 'w/onion-paths' into clearnet 4 years ago
Warrick Corfe-Tan 7c82ccb3e9 user details modal refactor functioning. 4 years ago
Warrick Corfe-Tan e55cae697d Refactor confirm modal to redux. 4 years ago
Audric Ackermann 8ef9c8ed1a
remove delivery receipt logic 4 years ago
Audric Ackermann b403b89224
fix bug with quote empty profileName 4 years ago
Audric Ackermann 03fe67b974
remove unused contact field on message 4 years ago
Warrick Corfe-Tan 1bfdbc5c93 WIP: Refactoring modals. 4 years ago
Audric Ackermann 4a98d911a2
add a HeaderOption to change the notification settings for each convo 4 years ago
Audric Ackermann b055165a5d
display a message when the recipient screenshots an attachemnt 4 years ago
Audric Ackermann 810ccdf675
send dataExtractionNotificaionMessage on saving attachment on priv chats 4 years ago
Audric Ackermann 8a2efb83ec
Merge branch 'clearnet' into remove-fsv1-sogsv1 4 years ago
Audric Ackermann 6f8c8ee1b3
remove most of sogsv1 and fsv1 and update version fetch url
version fetch is used to know when we have a new update
4 years ago
Audric Ackermann 3456162402
Moved opengroupv1 test to opengroupv2 tests 4 years ago
Audric Ackermann 81553aed57
do not overwrite attachment name on sending side
Relates #1593
4 years ago
Audric Ackermann 637e092a00
make sure fileserver v1 is not supported and not used anymore 4 years ago
Audric Ackermann a2ee3ac98f
Merge remote-tracking branch 'upstream/clearnet' into scoring-system 4 years ago
Audric Ackermann 8c726fd745
reupload avatar every 10 days 4 years ago
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 4 years ago
Audric Ackermann c2298c4c30
Merge branch 'clearnet' into scoring-system 4 years ago
Audric Ackermann c599d0b629
WIP 4 years ago
Audric Ackermann 3d9fbd9153
fixup nickname dialog for enter key pressed event (#1623)
also add some type for it and remove unused props
4 years ago
Warrick cb307790f6
WIP: User nicknames (#1618)
* WIP Adding change nickname dialog.

* WIP adding nickname change dialog.

* WIP nickname dialog.

* WIP: Able to set conversation nicknames. Next step cleaning and adding to conversation list menu.

* Fix message capitilisations.

* Add change nickname to conversation list menu.

* Enable clear nickname menu item.

* Added messages for changing nicknames.

* Clearing nicknames working from header and message list.

* Adding modal styling to nickname modal.

* Reorder nickname menu item positions.

* Add group based conditional nickname menu options to conversation header menu.

* minor tidying.

* Remove unused error causing el option.

* Formatting.

* Linting fixes.

* Made PR fixes

* Prioritise displaying nicknames for inviting new closed group members
and updating closed group members.
4 years ago
Audric Ackermann 288d4a6a2e
make sure the left member convo exist in rendering GroupUpdate 4 years ago
Audric Ackermann b574fd731d
match group invitation design with ios 4 years ago
Audric Ackermann e10a3cd4a9
remove the channelId from groupInvitation 4 years ago
Audric Ackermann 248494f15b
redesign group invitation message type 4 years ago
Audric Ackermann eb0ddd85f4
add zombies logic for member leaving and removing 4 years ago
Audric Ackermann 3aa9ca785f
fix leave opengroup button right panel, and add memberCount 4 years ago
Audric Ackermann 127b7d41fa
fix update of avatar image for opengroupv2 4 years ago
Audric Ackermann bdcdca206b
write attachment path with absolute attachment to disk for opengroupv2 4 years ago
Audric Ackermann 710c9fa269
fix http request over onion 4 years ago
Audric Ackermann 6aa699ad23
fix deduplication for opengroups v1 & v2 4 years ago
Audric Ackermann a26c5da6cb
Uniformize once and for all the conversation types
no more 'direct'. those are private convos
4 years ago
Audric Ackermann 37562e11f8
add back invite contacts to opengroupv2 4 years ago
Audric Ackermann 28ad468965
add delete Message logic for opengroupv2 4 years ago
Audric Ackermann 98b69c17f0
add userblocking opengroupv2 and quoting back of messages 4 years ago
Audric Ackermann 5916ce5cbe
add the ban/unban logic for opengroupv2 4 years ago
Audric Ackermann f7e163c142
add sending of message for opengroupv2` 4 years ago
Audric Ackermann 40793eb74d
fix leave of opengroupv2 logic 4 years ago
Audric Ackermann 9d825dc2d2
add start of OpenGroup Pollers v2 to start of the app 4 years ago
Audric Ackermann 193fb2a101
move some message interactions logic to another file 4 years ago
Audric Ackermann 3b30d13719
add some regex to identify Opengroupv2 vs Opengroupv1 convo Ids 4 years ago
Audric Ackermann e3e1296788
add constant openGroupPrefix: publicChat: and use it 4 years ago
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 4 years ago
Audric Ackermann 6896cffd75
Merge branch 'clearnet' into HEAD 4 years ago
Audric Ackermann b68338e26c
working get and post request with opengroup api v2 4 years ago
Audric Ackermann c07271109f
Add a ConversationType OPEN_GROUP 4 years ago
Audric Ackermann b9586c90ce
working open group v2 getInfo for https only 4 years ago
Audric Ackermann 2e29206c99
Merge remote-tracking branch 'upstream/clearnet' into voice-message-record-mp3 4 years ago
Audric Ackermann 0ce1059a96
disable UI recording bars so we can encode audio MP3 4 years ago
Audric Ackermann 53d16d7dac
remove fallback to node-fetch 4 years ago
Audric Ackermann c7d140f4d4
lint 4 years ago
Audric Ackermann 1f509e003d
add a markAllAsRead option on menus 4 years ago