Commit Graph

57 Commits

Author SHA1 Message Date
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +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
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 2021-10-29 10:58:40 +11:00
Audric Ackermann 1e8c8991ad
more cleanup 2021-10-04 10:56:54 +11:00
Audric Ackermann fa32e61982
network delete_all force retries if we get a 421 2021-09-29 17:04:38 +10: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 f48b57d077 fix audio attachments sending blob 2021-08-19 17:05:23 +10:00
audric 6a11a4c879 store staged Attachments in redux
still an issue with the File in redux
2021-08-18 09:55:35 +10:00
audric 8a19b50c0f fix attachment not being uploaded since electron upgrade 2021-08-17 16:03:57 +10:00
audric 9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00
audric bea704ecf0 bump react to 17 2021-08-04 10:52:24 +10:00
audric 5b487b0fec Merge remote-tracking branch 'upstream/clearnet' into disable-search-for-now 2021-07-27 11:25:14 +10:00
audric 1054278a54 disable search in messages for now 2021-07-27 10:29:18 +10:00
Brice-W bec9bd553e Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into filter-expired-messages 2021-07-26 12:19:20 +10:00
Brice-W beca14982c manage expired nessage deletion in setExpired 2021-07-26 10:43:12 +10:00
audric c2b5ac68d6 don't rely on scrollheight to calculate for ui Updates
as it causes a layout complete refresh
2021-07-22 10:20:09 +10:00
Audric Ackermann 5b0b165ba9
Merge remote-tracking branch 'upstream/clearnet' into perf-improv 2021-07-12 13:01:23 +10:00
Audric Ackermann 9a302fb5ff
add a cache of the keypairs for a closed group 2021-07-09 11:45:26 +10:00
Audric Ackermann ee4a0b9b1e
cleanedup redux action openConversationExternal 2021-07-08 16:12:58 +10:00
Audric Ackermann b385a9b101
test with better-sqlite3 bindings 2021-07-08 13:00:20 +10:00
Audric Ackermann c8aa73626e
do not load right panel data unless it is visibl 2021-07-06 14:02:47 +10:00
Brice-W 6b8a4ffc6c display link preview popup only time 2021-07-02 14:35:28 +10:00
Audric Ackermann 4a491e6a6a
lint 2021-06-25 15:33:31 +10:00
Audric Ackermann 3f75fa54ad
delete one opengroupv1 message every 10 sec until there is no more 2021-06-11 15:14:52 +10:00
Audric Ackermann 9796f6fd52
limit the number of returned members to the last 300 2021-06-11 13:12:41 +10:00
Audric Ackermann 27fb732f50
cleanup unused prekeys table 2021-06-11 12:09:57 +10:00
Audric Ackermann 0a208c0d15
store snodes list on db, use them if possible on app start
if not enough snodes or no snodes at all, a request to the seed node is
made instead
2021-06-08 14:35:30 +10:00
Audric Ackermann 722f240f3d
fix deduplication based on serverTimestamp 2021-06-07 15:54:44 +10:00
Audric Ackermann caf8397d29
Merge pull request #1652 from Bilb/fetch-x-messages-long-away
Fetch last messages only when long away from room
2021-05-27 10:39:39 +10:00
Audric Ackermann a2ee3ac98f
Merge remote-tracking branch 'upstream/clearnet' into scoring-system 2021-05-26 14:15:54 +10:00
Audric Ackermann 8c726fd745
reupload avatar every 10 days 2021-05-25 13:19:57 +10:00
Audric Ackermann eff4f490f3
do not fetch all messages for room if user was away for > 2 weeks 2021-05-24 13:19:43 +10:00
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 2021-05-19 15:54:31 +10:00
Audric Ackermann 710c9fa269
fix http request over onion 2021-04-30 11:12:44 +10:00
Audric Ackermann 6aa699ad23
fix deduplication for opengroups v1 & v2 2021-04-28 15:53:30 +10:00
Audric Ackermann 28ad468965
add delete Message logic for opengroupv2 2021-04-28 11:18:39 +10:00
Audric Ackermann 35d66d8865
fix bug fetching new token every request 2021-04-23 17:05:10 +10:00
Audric Ackermann 40793eb74d
fix leave of opengroupv2 logic 2021-04-23 15:43:49 +10:00
Audric Ackermann 9d825dc2d2
add start of OpenGroup Pollers v2 to start of the app 2021-04-23 14:59:08 +10:00
Audric Ackermann 193fb2a101
move some message interactions logic to another file 2021-04-23 11:08:38 +10:00
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann 6896cffd75
Merge branch 'clearnet' into HEAD 2021-04-22 18:02:01 +10:00
Audric Ackermann 897bad2d5e
throw only for breaking stuff on ApiV2 calls 2021-04-22 10:37:55 +10:00
Audric Ackermann b73685008c
add getMessages and postMessages OpenGroupAPIV2 2021-04-21 16:48:13 +10:00
Audric Ackermann b68338e26c
working get and post request with opengroup api v2 2021-04-21 14:42:59 +10:00
Audric Ackermann b9586c90ce
working open group v2 getInfo for https only 2021-04-20 14:52:02 +10:00
Audric Ackermann d775ed3542
fill storage cache with just created attachment key 2021-04-14 13:27:00 +10:00
Audric Ackermann 42f0d21740
generate attachment key on migration 2021-04-14 10:33:52 +10:00
Audric Ackermann e1114c8ce7
add some types to Data.ts calls 2021-03-05 09:24:25 +11:00
Audric Ackermann 05e9c936ff speed up loading of messages by not notify on every new message 2021-03-02 12:41:25 +11:00