Commit Graph

606 Commits (90f4dd761c7607df6a3cf8817d48ec9e25473a79)

Author SHA1 Message Date
Audric Ackermann 00d70db0be
queue user profile avatars update
also add some tests for the promise utils
3 years ago
Audric Ackermann 475c92eeb4
migrate about_start to not use jquery 3 years ago
Audric Ackermann 0ebc1d7e92
split attachmnent logic between what is used on main and renderer 3 years ago
Audric Ackermann 9f8920ef2c mostly working but need to improve perfs 3 years ago
Audric Ackermann fe57531797 Sesion 1.8.4 with calls enabled 3 years ago
Audric Ackermann 79bf0c53ee move libtextsecure/crypto.js to ts
used mostly for attachments encrypting before upload/decrypt and profile
encrypt/derypt
3 years ago
Audric Ackermann 5bc576249b move signal.js to TS 3 years ago
Audric Ackermann 12d9a8db78
electron-renderer webpack seems to be generating main_renderer.js 3 years ago
Audric Ackermann d99cdc48f4
rename background.js to main_start.js 3 years ago
Audric Ackermann 7d570fec52
move linkPreviews.js to ts 3 years ago
Audric Ackermann 6bd835dfc3
move storage.js to ts 3 years ago
Audric Ackermann 0d4059ccb1
move read_receipts to ts 3 years ago
Audric Ackermann 0b814d4d16
remove read sync as we do not care about them on Session 3 years ago
Audric Ackermann 2f02d3e21c
use source instead of senderIdentity to check for approved new group 3 years ago
Audric Ackermann 74cf88cf81
create closed group mark as approved
also, do not filter closed group based on the isApproved field in redux
3 years ago
Audric Ackermann ad653e4aac
change sent background and text color for light mode
use black text on green instead of white on darker green
3 years ago
Audric Ackermann 602a287263
join closed groups from config only on the first config message 3 years ago
warrickct 3424fa88e8 Remove typing for blocklist on window. Minor formatting 3 years ago
warrickct b166a0483a Adding logging output for dropping outdated config messages. Removing libsodium-wrapper usage as we use sumo version now. Making target for linux build on one line. 3 years ago
warrickct b79be5b502 adding linting fixes. 3 years ago
warrickct 5adca482bd Fix open groups not being restored when restoring device from recovery phrase. 3 years ago
warrickct 821f4d73ff Merge branch 'clearnet' into msg-request-ui-2 3 years ago
warrickct 0f7bf5d2d1 Remove unnecessary conditional 3 years ago
warrickct 451fb351a3 removing comments 3 years ago
warrickct e4f4328232 rename request evaluating function for clarity. Prevent disappearing messsages from being activated by request recipient before the request has been accepted. 3 years ago
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 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 ba30dc57c2 Adding conditional to prevent adding multiple approval sync messages for the acceptor of the request. 3 years ago
warrickct 2957c131c0 removing blocked convos no longer appear in regular inbox and using processing of polled swarm messages to infer approval. 3 years ago
warrickct a90960c502 Fix conditional for config message to avoid false negatives. 3 years ago
warrickct 539458fe8a Adding setting of approval fields on message processing. 3 years ago
warrickct e5ecb9c106 Adding checks for potentially undefined fields on config messages to prevent false negatives. 3 years ago
Audric Ackermann 3fed22048b
rename a few loki to session 3 years ago
warrickct f5972a5d1c Calling setting convo isApproved. Removing some unnecessary conditionals. 3 years ago
warrickct abc188e889 Additional PR changes 3 years ago
warrickct efa482b002 adding pr changes 3 years ago
warrickct 0db3c76756 Fixing linting errors 3 years ago
warrickct 893f7e99b8 Merge branch 'clearnet' into message-request-ui 3 years ago
warrickct c3d9912572 Adding handling of edge case for messaging clients without request approval update. 3 years ago
warrickct 6a02846829 Correcting merge errors. 3 years ago
warrickct ee9156d4f8 Merge clearnet into message-request-ui 3 years ago
warrickct 8ebfa4b7a3 Move message receival UI toggling to event. 3 years ago
warrickct bc6edd7774 Adding unhiding of message request banner when receiving a new convo request. 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 0461454e27 Removing toast on request accept 3 years ago
warrickct 11e6d80419 minor renaming. 3 years ago
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 3 years ago
Audric Ackermann a3eb80abcf
fix group updates outgoing message status in left pane 3 years ago
Audric Ackermann 1eba9dce30
merge messagesChanged and messagesAdded to a single redux event 3 years ago
Audric Ackermann 949c36a42f
merge fetching more messages for top and bottom in the same flag 3 years ago
Audric Ackermann 9000c649f8
remove optional setToExpire and UnreadMessageIsAbove indicator 3 years ago
Audric Ackermann 4e638d162d
fix the scroll to bottom with button and on send message 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 fc916ce94c Fix attachments duplication on message syncing with current device 3 years ago
audric e97ac5d7c7 make the DL spinner a styled component 3 years ago
audric 4b39b46b6a replace invalid unicode in filename 3 years ago
audric fe269a0cfe make sure to update displayName even if avatar failed to DL 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 28892ce8cc
remove the deduplication by hash for opengroup messages
Relates #2069
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 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 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 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 f91e2c4edd Minor PR fixes 3 years ago
warrickct 97fe0c7a7a Merge branch 'clearnet' into message-requests 3 years ago
warrickct b5df47c2b8 Addressing PR comments 3 years ago
warrickct 726418887c Addressing PR comments 3 years ago
warrickct 2d664a2df7 Applying PR changes. 3 years ago
warrickct 3602b51986 Fixing up block all logic. 3 years ago
Audric Ackermann af75b6f0e2
disable deduplication based serverId+sender
only use the serverTimestamp+sender for searching because
serverId+sender might have false positive
3 years ago
warrickct ac8dbb341b linting and formatting changes 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
warrickct 9c9a43ee97 Adding improvements to message request handling. 3 years ago
Audric Ackermann 1dff310820
no video track by default and will be turn ON if asked to 3 years ago
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 3 years ago
Audric Ackermann c1471426ac
dismiss a call when answered from another of our devices 3 years ago
Audric Ackermann 22e4c9d850
fix archlinux pw unused issue
on archlinux, the appimage links to the system sqlite by default which
does not support sqlcipher
3 years ago
warrickct 40396224dc adding feature flag for config message receiving 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 67665dde56
handle network switching with webrtc
dirty hack from
https://bugs.chromium.org/p/chromium/issues/detail?id=982793
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 ef25e5956f
add a spinner for when video call video is loading 4 years ago
Warrick Corfe-Tan 87235641cb fixed typos for translations and method name. 4 years ago
Warrick Corfe-Tan c3924f85a9 Adding blocking of individual requests and syncing of block to devices. Added approval by replying to a message. 4 years ago
Audric Ackermann 8468598b3a
send a pre offer to the PNServer for video calls 4 years ago
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 4 years ago
Audric Ackermann ce16066313
do not try to do an unsend request on a group swarm 4 years ago
Audric Ackermann bb26680b75
unsend for me only on a closed group only deletes locally
also do not await request to PN server
4 years ago
Audric Ackermann 5d9565a559
fix menu action for unsending messages 4 years ago
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 4 years ago
Audric Ackermann 251309656b
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls-p2 4 years ago
Audric Ackermann 5c7615d205
removed old fileserver support 4 years ago
Audric Ackermann 8e6d9ca036
Merge pull request #1969 from Bilb/webrtc-calls
Webrtc video calls - first part - disabled
4 years ago
Audric Ackermann a629985a4f
fix toggling input source and off in video calls 4 years ago
Warrick Corfe-Tan 8d75fde012 yarn ready changes 4 years ago
Warrick Corfe-Tan ff1d7cefe4 changing some code. 4 years ago
Warrick Corfe-Tan 3c7c3220a1 Marking conversation as read if received a sync message from same users other device. 4 years ago
Audric Ackermann 4277c29bd8
make sure to refetch messageModel from db when saving attachments 4 years ago
Warrick Corfe-Tan 1522e5102d removed isCall property from message. Fixed text 4 years ago
Warrick Corfe-Tan 0b8f3255b0 corrections to pass yarn ready 4 years ago
Warrick Corfe-Tan 6743201cc4 added perfect negotiation
Adding toast for cam and audio permission when making a call.

adding missed call message and toast when a call is received while mid-call.

background call message work
4 years ago
Audric Ackermann 8b611a2867
make call UI react to incoming and ongoing calls 4 years ago
Audric Ackermann d55c96cb67
setup webrtc between two pubkey 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 0d90248450 fix scrolling jumping to bottom on new messages 4 years ago
audric 7fa50b4a73 do not pass props not needed between message list components 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
Warrick Corfe-Tan b26ec1996d yarn ready 4 years ago
Brice-W a89c6710fb Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into link-previews 4 years ago
Brice-W f6d3715dab add a link icon when there is no image available or when media download is not allowed 4 years ago
audric 9e37985d03 enable no-unused local and imports and fix tslint 4 years ago
audric 07b6d7f6f1 fix a bug with preview of messages not being downloaded 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
Audric Ackermann 9b98b32d1b
filter out duplicates only if they are less than 10 messages away 4 years ago
Audric Ackermann 3f065a7b0e
improve marking message as read with hooks 4 years ago
Brice-W 47e2f5726e fix group key pair cache issue 4 years ago
Audric Ackermann 06dfaa2482
always retry all emcyrption keypairs on incoming group msg 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 8414aa800d fix a bug not making profile name updates in opengroup 4 years ago
audric fce86989f0 make sure profileKey is a hex string in all convos 4 years ago
audric c8f0150aaf fix unread banner position when first unread is visible 4 years ago
audric e72885944b use selector to sort and add first of serie flag 4 years ago