Commit graph

537 commits

Author SHA1 Message Date
warrickct b79be5b502 adding linting fixes. 2022-03-08 16:11:54 +11:00
warrickct 5adca482bd Fix open groups not being restored when restoring device from recovery phrase. 2022-03-08 15:42:07 +11:00
warrickct 821f4d73ff Merge branch 'clearnet' into msg-request-ui-2 2022-03-03 14:02:10 +11:00
warrickct 0f7bf5d2d1 Remove unnecessary conditional 2022-03-02 17:35:39 +11:00
warrickct 451fb351a3 removing comments 2022-03-02 14:49:55 +11:00
warrickct e4f4328232 rename request evaluating function for clarity. Prevent disappearing messsages from being activated by request recipient before the request has been accepted. 2022-03-02 13:04:33 +11:00
warrickct 1ca66e6bcf Fix read receipts being considered as inferred request approvals. Fix preventing subsequent request messages from reactivating the request banner. 2022-02-24 12:57:50 +11:00
warrickct c2722ed87f fixing linting errors. 2022-02-24 11:40:25 +11:00
warrickct 08ba24c3c9 refactoring 2022-02-24 10:17:17 +11:00
warrickct 2b42290bca Fixing case where restoring device restores declined message requests. 2022-02-23 20:19:47 +11:00
warrickct 9338f2fc20 Fixed issue preventing approval message being shown as approval was set before handling config messages ending the handling early. 2022-02-23 15:35:31 +11:00
warrickct ba30dc57c2 Adding conditional to prevent adding multiple approval sync messages for the acceptor of the request. 2022-02-23 14:08:34 +11:00
warrickct 2957c131c0 removing blocked convos no longer appear in regular inbox and using processing of polled swarm messages to infer approval. 2022-02-22 12:09:06 +11:00
warrickct a90960c502 Fix conditional for config message to avoid false negatives. 2022-02-22 11:39:52 +11:00
warrickct 539458fe8a Adding setting of approval fields on message processing. 2022-02-22 10:34:46 +11:00
warrickct e5ecb9c106 Adding checks for potentially undefined fields on config messages to prevent false negatives. 2022-02-22 10:08:51 +11:00
Audric Ackermann 3fed22048b
rename a few loki to session 2022-02-18 13:03:47 +11:00
warrickct f5972a5d1c Calling setting convo isApproved. Removing some unnecessary conditionals. 2022-02-17 22:05:13 +11:00
warrickct abc188e889 Additional PR changes 2022-02-15 15:00:23 +11:00
warrickct efa482b002 adding pr changes 2022-02-15 14:42:39 +11:00
warrickct 0db3c76756 Fixing linting errors 2022-02-15 13:59:58 +11:00
warrickct 893f7e99b8 Merge branch 'clearnet' into message-request-ui 2022-02-15 12:04:14 +11:00
warrickct c3d9912572 Adding handling of edge case for messaging clients without request approval update. 2022-02-14 23:41:08 +11:00
warrickct 6a02846829 Correcting merge errors. 2022-02-14 23:01:50 +11:00
warrickct ee9156d4f8 Merge clearnet into message-request-ui 2022-02-14 16:42:53 +11:00
warrickct 8ebfa4b7a3 Move message receival UI toggling to event. 2022-02-14 15:09:17 +11:00
warrickct bc6edd7774 Adding unhiding of message request banner when receiving a new convo request. 2022-02-14 14:47:54 +11:00
warrickct ac8c4ac2eb Removing msg req feature flag. 2022-02-14 09:57:43 +11:00
warrickct 8a8a5ca82c removing pubkey from message request response. 2022-02-11 14:47:24 +11:00
warrickct f93a2e5fad Adding more PR review changes. 2022-02-11 14:05:51 +11:00
warrickct 36ca2a767c Adding PR changes 2022-02-11 12:14:58 +11:00
warrickct 0461454e27 Removing toast on request accept 2022-02-11 09:39:53 +11:00
warrickct 11e6d80419 minor renaming. 2022-02-10 22:26:55 +11:00
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 2022-02-10 16:49:56 +11:00
Audric Ackermann a3eb80abcf
fix group updates outgoing message status in left pane 2022-02-04 13:37:50 +11:00
Audric Ackermann 1eba9dce30
merge messagesChanged and messagesAdded to a single redux event 2022-02-03 10:58:46 +11:00
Audric Ackermann 949c36a42f
merge fetching more messages for top and bottom in the same flag 2022-02-03 10:58:45 +11:00
Audric Ackermann 9000c649f8
remove optional setToExpire and UnreadMessageIsAbove indicator 2022-02-03 10:58:45 +11:00
Audric Ackermann 4e638d162d
fix the scroll to bottom with button and on send message 2022-02-03 10:58:45 +11:00
Audric Ackermann 7d9f970b2c
remove decrypted_at field from saving message models as unused 2022-02-03 10:58:44 +11:00
Audric Ackermann b3a8692240
cleanup incoming message creation for displaying messageresult 2022-02-03 10:58:44 +11:00
Audric Ackermann 5afbd9c19e
cleanup creation of opengroup message on sync 2022-02-03 10:58:43 +11:00
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
2022-02-03 10:58:42 +11:00
Audric Ackermann 00d2bbc63d
cleanup MessageSearchResults 2022-02-03 10:58:42 +11:00
Audric Ackermann 792c23da87
cleanup scroll to unread of quote or search result on open 2022-02-03 10:58:42 +11:00
Audric Ackermann a3be2c347d
fixup open convo on search, quote click or hit the bottom 2022-02-03 10:58:41 +11:00
audric a21751c611
open convo on last unread, and can scroll up 2022-02-03 10:58:34 +11:00
audric fc916ce94c Fix attachments duplication on message syncing with current device 2022-01-14 14:56:55 +11:00
audric e97ac5d7c7 make the DL spinner a styled component 2022-01-14 14:55:12 +11:00
audric 4b39b46b6a replace invalid unicode in filename 2022-01-14 11:03:22 +11:00
audric fe269a0cfe make sure to update displayName even if avatar failed to DL 2022-01-13 17:02:53 +11:00
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 2022-01-12 17:01:32 +11:00
Audric Ackermann 4349b699cb
remove schemaVersion field and logic from message object 2022-01-07 10:32:58 +11:00
Audric Ackermann 28892ce8cc
remove the deduplication by hash for opengroup messages
Relates #2069
2021-12-21 15:41:49 +11:00
Audric Ackermann 6e102644c3
update english translations 2021-12-21 09:49:22 +11:00
Audric Ackermann dd52ad336f
use variables for common settings key
also turn off typing message by default
2021-12-21 08:16:22 +11:00
Audric Ackermann e17b5e0671
Fix attachment dl freeze (#2086)
* fix attachment download freezing app for some opengroups

* make registration page work with smaller height
2021-12-15 15:56:29 +11:00
Audric Ackermann 58dc3e26ca
reactify group updates text bubble from redux store (#2083) 2021-12-15 11:32:07 +11:00
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
2021-12-14 15:15:12 +11:00
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
2021-12-08 14:15:54 +11:00
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
2021-11-29 17:40:46 +11:00
warrickct e32f20d8bc PR changes 2021-11-26 13:20:03 +11:00
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +11:00
warrickct f91e2c4edd Minor PR fixes 2021-11-24 13:55:16 +11:00
warrickct 97fe0c7a7a Merge branch 'clearnet' into message-requests 2021-11-24 13:37:18 +11:00
warrickct b5df47c2b8 Addressing PR comments 2021-11-24 13:36:51 +11:00
warrickct 726418887c Addressing PR comments 2021-11-24 09:32:07 +11:00
warrickct 2d664a2df7 Applying PR changes. 2021-11-23 16:03:24 +11:00
warrickct 3602b51986 Fixing up block all logic. 2021-11-23 11:00:11 +11:00
Audric Ackermann af75b6f0e2
disable deduplication based serverId+sender
only use the serverTimestamp+sender for searching because
serverId+sender might have false positive
2021-11-23 10:32:11 +11:00
warrickct ac8dbb341b linting and formatting changes 2021-11-22 17:36:23 +11:00
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 2021-11-22 17:24:53 +11:00
warrickct 2144a3980f Linting and formatting. 2021-11-22 16:48:30 +11:00
warrickct 23ca19b125 Only updating approval when it is a true value as we consider a block a decline. 2021-11-22 16:18:19 +11:00
warrickct 9c9a43ee97 Adding improvements to message request handling. 2021-11-22 15:48:12 +11:00
Audric Ackermann 1dff310820
no video track by default and will be turn ON if asked to 2021-11-19 13:27:16 +11:00
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +11:00
Audric Ackermann c1471426ac
dismiss a call when answered from another of our devices 2021-11-17 16:01:33 +11:00
Audric Ackermann 22e4c9d850
fix archlinux pw unused issue
on archlinux, the appimage links to the system sqlite by default which
does not support sqlcipher
2021-11-17 10:21:19 +11:00
warrickct 40396224dc adding feature flag for config message receiving 2021-11-16 14:40:52 +11:00
warrickct 2eab74246b PR changes. Disabling message requests behind feature flags. 2021-11-16 13:46:59 +11:00
warrickct e5a203a48e adding setting of active_at to hide unapproved messages. 2021-11-16 13:09:44 +11:00
Audric Ackermann 67665dde56
handle network switching with webrtc
dirty hack from
https://bugs.chromium.org/p/chromium/issues/detail?id=982793
2021-11-15 16:53:00 +11:00
Warrick Corfe-Tan cb5551c1e9 PR changes 2021-11-14 22:38:07 +11:00
Warrick Corfe-Tan 6a62437c3e Blocking, accepting on click and accepting on msg send
working across clients.
2021-11-12 13:29:35 +11:00
Audric Ackermann ef25e5956f
add a spinner for when video call video is loading 2021-11-08 14:09:50 +11:00
Warrick Corfe-Tan 87235641cb fixed typos for translations and method name. 2021-11-04 16:07:27 +11:00
Warrick Corfe-Tan c3924f85a9 Adding blocking of individual requests and syncing of block to devices. Added approval by replying to a message. 2021-11-04 14:47:47 +11:00
Audric Ackermann 8468598b3a
send a pre offer to the PNServer for video calls 2021-11-04 11:49:34 +11:00
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 2021-10-29 10:58:40 +11:00
Audric Ackermann ce16066313
do not try to do an unsend request on a group swarm 2021-10-27 11:44:37 +11:00
Audric Ackermann bb26680b75
unsend for me only on a closed group only deletes locally
also do not await request to PN server
2021-10-26 16:59:46 +11:00
Audric Ackermann 5d9565a559
fix menu action for unsending messages 2021-10-26 16:08:04 +11:00
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann 251309656b
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls-p2 2021-10-21 13:52:20 +11:00
Audric Ackermann 5c7615d205
removed old fileserver support 2021-10-20 14:18:57 +11:00
Audric Ackermann 8e6d9ca036
Merge pull request #1969 from Bilb/webrtc-calls
Webrtc video calls - first part - disabled
2021-10-18 16:00:56 +11:00
Audric Ackermann a629985a4f
fix toggling input source and off in video calls 2021-10-14 14:12:14 +11:00
Warrick Corfe-Tan 8d75fde012 yarn ready changes 2021-10-08 13:57:25 +11:00
Warrick Corfe-Tan ff1d7cefe4 changing some code. 2021-10-08 13:33:53 +11:00