Commit Graph

99 Commits

Author SHA1 Message Date
Audric Ackermann 12d9a8db78
electron-renderer webpack seems to be generating main_renderer.js 2022-03-28 17:28:36 +11:00
Audric Ackermann d99cdc48f4
rename background.js to main_start.js 2022-03-23 16:50:17 +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 00d2bbc63d
cleanup MessageSearchResults 2022-02-03 10:58:42 +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 Ackermann 28892ce8cc
remove the deduplication by hash for opengroup messages
Relates #2069
2021-12-21 15:41:49 +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
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +11:00
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 2021-11-22 17:24:53 +11:00
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +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 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>
2021-09-20 13:47:59 +10:00
audric f9988119f9 major UI rewrite of messages view with redux improvements 2021-08-25 15:01:19 +10:00
audric 9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00
Warrick Corfe-Tan ec447b2e2e network clear all WIP 2021-07-30 10:08:26 +10:00
Audric Ackermann 399041c5b3
cache identity pair and add some per measure 2021-07-13 14:19:06 +10:00
Audric Ackermann e8f0c4aaec
move libloki to webworker and remove unused stuff in it 2021-07-13 11:16:59 +10:00
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 2021-06-24 15:10:38 +10:00
Audric Ackermann 09d9db38e8
move taskWithTimeout to typescript 2021-06-21 16:12:51 +10:00
Audric Ackermann 2e475450ee
fix deduplication using a hash of recent messages 2021-06-07 17:58:27 +10:00
Audric Ackermann 722f240f3d
fix deduplication based on serverTimestamp 2021-06-07 15:54:44 +10:00
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 2021-05-19 15:54:31 +10:00
Audric Ackermann e6d78d5830
fallback to envelope timestamp if dataMessage.timestamp is 0 2021-05-07 16:06:51 +10:00
Audric Ackermann c063848167
pad and unpad message everywhere
attachment not padded for opengroup only
2021-05-07 10:56:14 +10:00
Audric Ackermann 7b96aba1bf
padd Message buffer for all outgoing messages (even opengroupv2) 2021-05-07 10:16:15 +10:00
Audric Ackermann c77b24a2d4
fix avatar loading for opengroupv2 2021-05-06 17:56:02 +10:00
Audric Ackermann a26c5da6cb
Uniformize once and for all the conversation types
no more 'direct'. those are private convos
2021-04-28 14:20:22 +10:00
Audric Ackermann 98b69c17f0
add userblocking opengroupv2 and quoting back of messages 2021-04-27 16:56:34 +10:00
Audric Ackermann 34148e67ec
add return of url after v2 attachment upload 2021-04-26 16:15:27 +10:00
Audric Ackermann 35d66d8865
fix bug fetching new token every request 2021-04-23 17:05:10 +10:00
Audric Ackermann 3b30d13719
add some regex to identify Opengroupv2 vs Opengroupv1 convo Ids 2021-04-23 10:13:09 +10:00
Audric Ackermann e3e1296788
add constant openGroupPrefix: publicChat: and use it 2021-04-23 09:45:12 +10:00
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann c07271109f
Add a ConversationType OPEN_GROUP 2021-04-20 15:52:19 +10:00
Audric Ackermann 79193ee7be
refactor to Visible and ControlMessage types 2021-03-19 10:43:47 +11:00
Audric Ackermann 8716fbf495 improve sent message handling by setting the correct convoId at start 2021-02-19 17:47:54 +11:00
Audric Ackermann bb3641b39a remove the forceSave option for unprocessed message too 2021-02-19 17:46:13 +11:00
Audric Ackermann 25e03eba35 fix lint 2021-02-19 15:13:43 +11:00
Audric Ackermann 3ee0ccfac8 remove the forceSave logic for a message, always insert or replace 2021-02-19 13:01:24 +11:00
Audric Ackermann d844c5141e remove unprocessed from store. Nothing was stored in the store
it was simply as passthrough to the Data file.
No we directly call the data file instead
2021-02-19 10:35:11 +11:00
Audric Ackermann 2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 2021-02-11 14:45:09 +11:00
Audric Ackermann 6d28f343c9
try to decrypt unprocessed message when we get a new encryptionkeypair 2021-02-11 10:23:21 +11:00
Audric Ackermann ed84760f0e
add a tslint rule to forbid use of async without await 2021-02-09 17:00:54 +11:00
Audric Ackermann 36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 2021-02-09 15:54:34 +11:00
Audric Ackermann b76ce0f2ff
update models to TS part2 2021-02-08 16:18:36 +11:00
Audric Ackermann a51f95d28c
move models to TS part1 2021-02-08 15:20:47 +11:00
Audric Ackermann b88ea110e8
Add multi device v2 support 2021-02-08 11:56:14 +11:00