Commit graph

1023 commits

Author SHA1 Message Date
Audric Ackermann 390af96514
WIP 2021-10-29 16:24:22 +11:00
Audric Ackermann a0b33fbbbb
add hook to listen for video call events 2021-10-29 14:15:02 +11:00
Warrick Corfe-Tan 4ad14e4c5b Added syncing accepting of contact between running instances. 2021-10-29 10:58:40 +11:00
Audric Ackermann 6a1f575c46
create a hook for listening for video call events
+ wip fullscreen video calls
2021-10-28 16:10:28 +11:00
Audric Ackermann d50d7eb803
our video off => show our avatar 2021-10-28 12:03:11 +11:00
Audric Ackermann dd281de903
cleanup feature flags 2021-10-27 13:57:14 +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
Warrick Corfe-Tan 9e0f128fc6 Adding isApproved field to protobuf. 2021-10-27 10:36:22 +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
Warrick Corfe-Tan e405b5ffd9 git stash 2021-10-25 17:33:37 +11:00
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann 0ae23875b7
finish cleaning up Settings page 2021-10-22 10:44:03 +11:00
Audric Ackermann a596531c57
cleanup SessionSettings by making them less a IdoEverything 2021-10-21 17:08:38 +11:00
Audric Ackermann 99b139f5c4
split settings folder and start adding the settings for video call 2021-10-21 13:18:50 +11:00
Warrick Corfe-Tan c3f20aceb2 WIP message requesting. Banner styling finished. 2021-10-20 17:49:14 +11:00
Audric Ackermann 760b99587a
make sure to poll quicker if we get >95 messages on one polling 2021-10-19 17:27:18 +11:00
Audric Ackermann ae8688bf2a
cleanup UI for missed call messages in msg list 2021-10-19 16:11:19 +11:00
Audric Ackermann 121f8927ed
exclude same /24 subnet from onion path building candidates 2021-10-18 16:43:40 +11:00
Audric Ackermann 8f3b6d9ab2
add wip of call missed notification 2021-10-18 15:38:49 +11:00
Audric Ackermann 678a5bcb3b
center avatar in draggable video window and handle mute video events 2021-10-18 14:45:40 +11:00
Audric Ackermann ecceaeaa8f
got datachannel working 2021-10-18 11:52:21 +11:00
Audric Ackermann 0bfa41c7b8
switch to our turn servers 2021-10-15 16:13:16 +11:00
Audric Ackermann 30a234158f
lint 2021-10-14 14:38:07 +11:00
Audric Ackermann 87e7cc5ebf
Merge remote-tracking branch 'upstream/clearnet' into webrtc-calls 2021-10-14 14:22:37 +11:00
Audric Ackermann cade0ffeb6
make sure audio locally is muted so we do not hear ourselves 2021-10-14 14:17:47 +11:00
Audric Ackermann ce79ce1f8b
add buttons with popover to choose call src device 2021-10-14 14:12:15 +11:00
Audric Ackermann a629985a4f
fix toggling input source and off in video calls 2021-10-14 14:12:14 +11:00
Audric Ackermann fbd51c2974
add buttons to display list of inputs + toast on empty 2021-10-14 14:12:08 +11:00
Audric Ackermann b85425ff83
make a draggable or in conversation call container 2021-10-05 16:44:42 +11:00
Audric Ackermann 4277c29bd8
make sure to refetch messageModel from db when saving attachments 2021-10-04 16:13:21 +11:00
Audric Ackermann f75f63e4e9
handle 421 on sending delete_all 2021-10-04 10:57:52 +11:00
Audric Ackermann 1e8c8991ad
more cleanup 2021-10-04 10:56:54 +11:00
Warrick Corfe-Tan 1522e5102d removed isCall property from message. Fixed text 2021-10-01 15:13:02 +10:00
Warrick Corfe-Tan 0b8f3255b0 corrections to pass yarn ready 2021-10-01 14:06:04 +10:00
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
2021-10-01 13:39:47 +10:00
Audric Ackermann fa32e61982
network delete_all force retries if we get a 421 2021-09-29 17:04:38 +10:00
Warrick Corfe-Tan 8985d1ff19 WIP perfect negotiations 2021-09-27 15:56:37 +10:00
Warrick Corfe-Tan 5becf6be04 Merge branch 'webrtc-calls' of https://github.com/oxen-io/session-desktop into webrtc-calls 2021-09-27 14:35:11 +10:00
Audric Ackermann c54f63ab45
add listener for video calls events 2021-09-27 13:57:31 +10:00
Warrick Corfe-Tan c777a27d5b WIP: Adding checks for perfect negotiation webrtc 2021-09-27 09:16:53 +10:00
Audric Ackermann 94bc3da2c7
working video calls accept with real streaming with android 2021-09-23 14:50:24 +10:00
Audric Ackermann 8b611a2867
make call UI react to incoming and ongoing calls 2021-09-23 13:37:38 +10:00
Audric Ackermann 6c50ec4bf1
link accept/decline and endcall buttons to the webrtc background 2021-09-22 16:31:00 +10:00
Audric Ackermann 2e49c44536
video stream displayed on mobile 2021-09-22 15:49:59 +10:00
Audric Ackermann eb6d8727ba
WIP 2021-09-22 13:30:21 +10:00
Audric Ackermann d55c96cb67
setup webrtc between two pubkey 2021-09-22 11:55:30 +10:00
Audric Ackermann a538cac491
add callmessage typescript class 2021-09-21 11:35:00 +10:00
Audric Ackermann 4e30614077
disable unsend request on the UI for now (#1934)
* disable unsend request on the UI too

* do not stop propagation of events for message ctx menu
2021-09-20 17:00:54 +10:00
Audric Ackermann 15ac6ed23c
Merge remote-tracking branch 'upstream/master' into clearnet 2021-09-20 14:00:52 +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 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
2021-09-17 16:41:04 +10:00
Audric Ackermann 2fdafb8fba
Out of sync message sync (#1923)
* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent

* Allow scrolling in mentioning people in composition box

Relates #1849
2021-09-17 11:36:36 +10:00
Audric Ackermann e9dfa0704f
do not overwrite sent_at with network time for synced messages (#1921)
* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent
2021-09-17 10:38:27 +10:00
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
2021-09-16 14:48:46 +10:00
Audric Ackermann 797bf0650f
Session 1.7.1 (#1908)
* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* Fix path building (#1903)

* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* fix link preview cropped when received

* make sure we fetch from seed if we end up with not enough snodes

* try to download recent previews if we just trusted a user

* throw if we need to rebuild path while fetching snode list from snode

* fixup no refecthing of snode list while we are fetching them already

* added test for fetch from db or seed

* fetch snode list from snode every hour

also make sure the path building does not try to get more snodes. It
just throws

* do not drop a path if an opengroup room is down and we get errors  back

* do not throw an error if the snode in error in not in any path

* fix tests

* bump to v1.7.11
2021-09-13 18:05:49 +10:00
Audric Ackermann c92baad736
Fix path building (#1903)
* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* fix link preview cropped when received

* make sure we fetch from seed if we end up with not enough snodes

* try to download recent previews if we just trusted a user

* throw if we need to rebuild path while fetching snode list from snode

* fixup no refecthing of snode list while we are fetching them already

* added test for fetch from db or seed

* fetch snode list from snode every hour

also make sure the path building does not try to get more snodes. It
just throws

* do not drop a path if an opengroup room is down and we get errors  back

* do not throw an error if the snode in error in not in any path

* fix tests

* bump to v1.7.11
2021-09-13 17:07:53 +10:00
audric ffe8375dd1 fix build of onion path when snodes count is exactly 12 2021-09-06 14:35:10 +10:00
audric 8462d7d38e make encrypted content fast load if already stored decrypted 2021-09-02 10:33:42 +10:00
audric a30876fd65 removed the enum from SessionIconType. Just rely on the type itself 2021-08-30 17:57:31 +10:00
audric cdd11eee47 speed up attachment loading by only loading those inview 2021-08-27 16:57:29 +10:00
audric 7fa50b4a73 do not pass props not needed between message list components 2021-08-26 16:17:37 +10:00
audric ea2dbb4a69 onionpath status only has ip needed 2021-08-25 16:51:40 +10:00
audric ec2eab6e23 do not trigger redux update if onion path did not change 2021-08-25 16:18:53 +10:00
audric f7b0c6c7e1 make conversation screen closer to mobile UI part1 2021-08-23 16:32:21 +10:00
Audric Ackermann ca96795683
Merge pull request #1869 from Bilb/logs-pn-server
Add logs of PN server notify fails
2021-08-19 13:46:03 +10:00
audric 68330b42bf Add logs of PN server notify fails 2021-08-19 13:20:31 +10:00
Brice-W a89c6710fb Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into link-previews 2021-08-16 15:10:17 +10:00
audric 6a50484597 fix tests for swarm polling 2021-08-13 14:51:15 +10:00
audric e5dab2781e remove spectron dependency 2021-08-13 14:47:00 +10:00
audric 8344c48d88 handle offline status for selectGuardNodes stuff 2021-08-13 11:49:45 +10:00
Brice-W 68979f83d5 Merge branch 'clearnet' of https://github.com/oxen-io/session-desktop into link-previews 2021-08-12 16:01:43 +10:00
Brice-W 384eecd9dc allow receiving link previews when sending is disabled 2021-08-12 15:58:41 +10:00
audric 9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00
audric 1ffadad2ad remove ip_url from seed nodes as this is unused 2021-08-12 14:24:20 +10:00
audric 215f2227c1 move what is used only for PN server api call to pnserver.ts 2021-08-12 14:18:03 +10:00
audric cc4168a858 do not update last fetch timestamp when an exception for retrieve 2021-08-12 11:48:55 +10:00
audric 01ff290f85 fix tests 2021-08-11 09:35:24 +10:00
audric c83776e510 fix the log file space usage on path building error
the issue seems to be coming from the fact that we need at least
minSnodePool count snodes to build a path reliably.
2021-08-10 16:51:05 +10:00
audric 612e99af4a add a setting to start the app with a tray icon
Relates #1759
2021-08-10 11:57:27 +10:00
audric abbd0a84a9 increase timeout for snode api requests (mainly for attachment upload)
Relates #1774
2021-08-09 12:23:56 +10:00
audric e9412df60e fix lint and steal autofocus on registration to seed 2021-08-06 15:59:38 +10:00
audric 2ebae9a746 fix tests for variable swarm polling 2021-08-06 14:04:21 +10:00
audric 61b48dd06b move delete_all api call to snodeAPI.ts 2021-08-06 11:01:18 +10:00
audric c276bf8dbe fix delete_all endpoint for testnet 2021-08-06 10:59:32 +10:00
audric 9991dc2364 move delete account logic to it's own dialog 2021-08-06 10:59:32 +10:00
Audric Ackermann e43e9df8e0 make sure forceDelete network data returns malicious snodes 2021-08-06 10:59:32 +10:00
Audric Ackermann 3dd1a534d3 fix delete all on network request 2021-08-06 10:59:32 +10:00
audric 67c2124a3b do not try to fetch seed node data with ip as cert will not be valid 2021-08-06 10:59:28 +10:00
audric ab8b6e85b4 Merge remote-tracking branch 'upstream/clearnet' into network-clear-all 2021-08-05 09:38:26 +10:00
audric b05910e219 Merge remote-tracking branch 'upstream/clearnet' into add-message-bottom-keep-scroll 2021-08-04 10:55:29 +10:00
audric 0658cb539a poll more often for inactive closed groups
the issue is that when you start the app, a closed group active at is
maybe a day old.
so you poll for this pubkey.

if the call is a success, all good, you get the latest messages and
update the active_at.
but if the first call fails (even after retrying), this group will be
marked as inactive and will be polled only a tiny little bit until we
get new messages.

So this commit make sure that we poll more often for closed groups which
are considered inactive
2021-08-04 10:52:38 +10:00
audric bea704ecf0 bump react to 17 2021-08-04 10:52:24 +10:00
Audric Ackermann f7658c323d
Merge pull request #1821 from Brice-W/bug-fixes
Bug fixes
2021-08-02 21:50:38 -07:00
Brice-W f7c7d6a3d8 change source of MessageAttributesOptionals to not null 2021-08-03 14:31:06 +10:00
Audric Ackermann 19c6bebab0
make sure to retry fetch sqwarm with a new targetNode if needed 2021-08-02 14:33:39 +10:00
Audric Ackermann 6e8d25e530
Fixes mentions in message body and resolve them quicker
Relates #1815
2021-08-02 10:47:32 +10:00
Warrick Corfe-Tan f087937f6f WIP debugging network deletion failing. 2021-08-02 09:40:14 +10:00
Audric Ackermann 3f065a7b0e
improve marking message as read with hooks 2021-07-30 16:12:36 +10:00
Warrick Corfe-Tan ec447b2e2e network clear all WIP 2021-07-30 10:08:26 +10:00
Audric Ackermann 119b6e1baf
keep scrolled position when adding messages at the bottom 2021-07-29 17:27:29 +10:00
Audric Ackermann f9ecfccc0a
batch UI updates of message added events 2021-07-29 13:44:38 +10:00
Audric Ackermann 506a0b2927
fix profileKey share in config message for base64 profileKey 2021-07-29 13:42:36 +10:00
Warrick Corfe-Tan 2e5ffc3196 wip delete all network message. 2021-07-28 17:10:46 +10:00
audric 316f37ae3d fix a bug of attachment not loading in one to one chats 2021-07-27 17:06:11 +10:00
audric fce86989f0 make sure profileKey is a hex string in all convos 2021-07-27 16:41:15 +10:00
audric e69873d6ba fix link preview url onClick
Fixes https://github.com/oxen-io/session-android/issues/669
2021-07-23 15:16:51 +10:00
audric bfc4b2b720 lint 2021-07-22 16:34:17 +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 e72885944b use selector to sort and add first of serie flag 2021-07-21 17:14:14 +10:00
audric 6d34a60f94 improve performance by not loading all unread messages 2021-07-21 13:40:21 +10:00
Audric Ackermann 16d34a7137
moved conversations reducer to createSlice 2021-07-14 10:53:03 +10:00
Audric Ackermann 63b81b4c8e
cleanup SessionMessageList p1 2021-07-13 17:00:20 +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 8760a59875
nodefetch headers as on mobile + cleanup worker code 2021-07-09 15:31:10 +10:00
Audric Ackermann aead3d6510
force headers to be empty for onion_req request 2021-07-09 14:20:48 +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 7f76ab274c
added a hook to fetch avatar of closed group members 2021-07-08 16:11:43 +10:00
Audric Ackermann b385a9b101
test with better-sqlite3 bindings 2021-07-08 13:00:20 +10:00
Audric Ackermann 97b9156562
improve performamce by memoizing avatar and menus 2021-07-06 17:14:00 +10:00
Audric Ackermann c8aa73626e
do not load right panel data unless it is visibl 2021-07-06 14:02:47 +10:00
Audric Ackermann a0afd3efe4
add some performance measure for commit calls 2021-07-05 10:30:33 +10:00
Audric Ackermann ca331b95a6
remove coverage unused 2021-07-05 10:26:40 +10:00
Audric Ackermann 6ca466cc22
fix about window localized string 2021-07-02 11:58:43 +10:00
Audric Ackermann ef0b07bb7a
WIP 2021-07-01 14:39:13 +10:00
Audric Ackermann 447f862ace
add some static glowing to the actionpanel light 2021-06-29 15:23:48 +10:00
Audric Ackermann 504a9afc0a
fix up handling of clock out of sync 2021-06-29 14:55:59 +10:00
Audric Ackermann e85f69a144
use our retrieve status as isOnline status 2021-06-29 13:59:41 +10:00
Audric Ackermann 19555b99a0
Merge pull request #1723 from Bilb/poll-less-often-group-not-active
Poll less often group not active
2021-06-29 11:48:42 +10:00
Audric Ackermann bab0a94e0d
make moderator strings add/remove error more explicit 2021-06-29 10:01:04 +10:00
Audric Ackermann ce9155a6bf
fix refresh random snode pool after getting new guardNodes 2021-06-28 11:46:35 +10:00
Audric Ackermann 4a491e6a6a
lint 2021-06-25 15:33:31 +10:00
Audric Ackermann 13bc1a21d9
add test for swarmPolling variable rate 2021-06-25 15:22:26 +10:00
Audric Ackermann 7ea30b70ca
variable swarm polling based on activeAt timestamp 2021-06-25 10:47:25 +10:00
Audric Ackermann 712f76a53c
Merge remote-tracking branch 'upstream/clearnet' into remove-conversationct-singleton 2021-06-24 16:42:00 +10:00
Audric Ackermann 9e5d33d849
trigger download for past messages when trusting contact 2021-06-24 16:37:37 +10:00
Audric Ackermann 802bd169d7
remove opengroupmanager singlteon 2021-06-24 15:35:42 +10:00
Audric Ackermann e090b8e8c6
remove getInstance on swarmPolling 2021-06-24 15:28:20 +10:00
Audric Ackermann e9e718bfcb
remove getInstance on MessageController=> getMessageController 2021-06-24 15:20:47 +10:00
Audric Ackermann 0b410404a3
remove keypair request manager 2021-06-24 15:19:04 +10:00
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 2021-06-24 15:10:38 +10:00
Warrick Corfe-Tan 02713328db removed line. 2021-06-22 11:47:29 +10:00
Warrick Corfe-Tan fce639bb6c Fix snode return 2021-06-22 11:43:27 +10:00
Audric Ackermann bfb4c00583
Merge pull request #1709 from Bilb/fix-fetch-snodes-from-db
fix snode fetch from seed if not enough on app start in db
2021-06-22 11:28:36 +10:00
Audric Ackermann 156a880472
fix snode fetch from seed if not enough on app start in db 2021-06-22 11:26:30 +10:00
Audric Ackermann 09d9db38e8
move taskWithTimeout to typescript 2021-06-21 16:12:51 +10:00
Audric Ackermann a659d5b480
fix open group invitation logic 2021-06-21 14:26:28 +10:00
Audric Ackermann 9a08ab68bc
fix onion path status light for orange color 2021-06-21 12:08:51 +10:00
Audric Ackermann 93e43fe929
move conversation dialogs to redux store 2021-06-18 14:31:16 +10:00
Audric Ackermann a5d7995168
merge dialog refctor with clearnet 2021-06-17 16:38:20 +10:00
Audric Ackermann c9d7f4a1ab
Merge remote-tracking branch 'w/onion-paths' into clearnet 2021-06-17 14:55:25 +10:00
Audric Ackermann eae9321522
Merge pull request #1701 from Bilb/fix-ons-single-char
allow single chars ONS
2021-06-17 09:40:09 +10:00
Audric Ackermann 09799d83c6
allow single chars ONS 2021-06-17 09:23:54 +10:00
Audric Ackermann dd9341a196
remove i18n from props everywhere where possible 2021-06-16 15:37:02 +10:00
Audric Ackermann e9217168e4
improve 502 handling with guard node in fault in some cases 2021-06-16 14:52:00 +10:00
Audric Ackermann 8ef9c8ed1a
remove delivery receipt logic 2021-06-15 10:12:43 +10:00
Warrick Corfe-Tan eb964f8aeb removed intentional COG invite fail. 2021-06-14 18:42:16 +10:00
Warrick Corfe-Tan ee7afb6ebf WIP: refacotring. confirm modals mostly done. Working on add moderator modal now. Need to toggle via setModal. 2021-06-11 17:02:02 +10:00
Audric Ackermann 27fb732f50
cleanup unused prekeys table 2021-06-11 12:09:57 +10:00
Audric Ackermann c5287158c4
merge protobuf attachment and preview types 2021-06-10 12:27:03 +10:00
Audric Ackermann b403b89224
fix bug with quote empty profileName 2021-06-10 12:26:48 +10:00
Audric Ackermann 3c80869418
improve bad path handling when snode not in path 2021-06-10 11:41:11 +10:00
Audric Ackermann 5bf844241b
fix tests 2021-06-10 10:27:00 +10:00
Audric Ackermann c1225b3a74
made some timestamp required in the protobuf 2021-06-10 09:58:10 +10:00
Audric Ackermann 173b49723b
rename groupInvitation in proto and remove more stuff unused 2021-06-10 09:08:20 +10:00
Audric Ackermann 01fd927070
match envelope type with ios protos 2021-06-10 08:55:25 +10:00
Audric Ackermann 37c9c6b5c3
new closed group send and handle expire timer already set 2021-06-09 11:49:19 +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 f9dfe4290a
Merge pull request #1680 from Bilb/fix-readd-clear-zombies
add pn server dev url fallback to v2/lsrpc
2021-06-07 11:02:23 +10:00
Audric Ackermann 6b399e3683
add pn server dev url fallback to v2/lsrpc
the dev pn server is not used in the app, this change is just here to
not have to think of switching this part too when debugging against the
pn dev server
2021-06-07 11:00:38 +10:00
Audric Ackermann 10b5ff9e0d
fix deleteAuthToken by including it on the request 2021-06-07 09:48:53 +10:00
Warrick Corfe-Tan e435b6c932 Making some PR changes. 2021-06-04 17:56:09 +10:00
Audric Ackermann ecf409bed5
fix slow app while removing v1 convoss 2021-06-04 12:19:44 +10:00
Audric Ackermann d44c55b6af
WIP 2021-06-04 10:21:05 +10:00
Audric Ackermann 118813661d
remove inte tests + handle opengroupv2 messages in chunk
this is to avoid freezing UI and is only a temporary fix

We need to have webworkers in this app
2021-06-03 18:27:11 +10:00
Audric Ackermann f3768a674a
short error on no network for retry sending message 2021-06-03 14:30:58 +10:00
Warrick Corfe-Tan 066e0d954e lights glowing but not yet in order.
WIP glow cycle.

Glow animation working.

Glow animation working, modal no longer interferring with left menu margins.

Cleaning up code. Adding PR suggestions.

Adding typing.

Refactor edit profile modal dialog to no longer use the signal code.
2021-06-02 15:57:56 +10:00
Audric Ackermann 94a0748d71
add some logs to opengroup retry 2021-06-02 15:57:38 +10:00
Audric Ackermann 0aefd1b2bf
add handling of old ONS names too 2021-06-02 13:59:48 +10:00
Audric Ackermann d0c1a2bf3a
add ONS resolve for new ONS and loading on message overlay 2021-06-02 12:29:06 +10:00
Audric Ackermann b055165a5d
display a message when the recipient screenshots an attachemnt 2021-06-01 15:46:29 +10:00
Audric Ackermann 810ccdf675
send dataExtractionNotificaionMessage on saving attachment on priv chats 2021-06-01 10:08:16 +10:00
Audric Ackermann 0192f295f2
move the user fetch for mentions to redux 2021-05-31 13:44:13 +10:00
Audric Ackermann c8878f0a19
remove existing opengroups v1 from db along with every messages 2021-05-31 13:08:26 +10:00
Audric Ackermann 744be229b7
move the PN server notify() to not use dot_net_api 2021-05-31 12:16:48 +10:00
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
2021-05-31 11:22:37 +10:00
Audric Ackermann 3456162402
Moved opengroupv1 test to opengroupv2 tests 2021-05-27 14:51:56 +10:00
Audric Ackermann b15eeb00cd
fixup duration missing 2021-05-27 11:05:00 +10:00
Audric Ackermann db54cb37b9
hide failing call to deleteAuthToken logs 2021-05-26 15:04:28 +10:00
Audric Ackermann 637e092a00
make sure fileserver v1 is not supported and not used anymore 2021-05-26 14:35:09 +10:00
Audric Ackermann 88036edd38
add more tests for multi errors onion rebuild 2021-05-26 13:47:53 +10:00
Warrick Corfe-Tan 22a32283b7 WIP Adding country and styling to modals. 2021-05-26 10:04:26 +10:00
Warrick Corfe-Tan d7b22e13e1 WIP: Onion path modal using redux state and refactored modals. 2021-05-26 09:58:33 +10:00
Audric Ackermann 05745d7726
add tests to drop snode from path after 3 failure 2021-05-25 17:40:08 +10:00
Audric Ackermann 2e9a34f72b
add tests for handling of OXEN_SERVER_ERRORS 2021-05-25 16:10:00 +10:00
Audric Ackermann 53c9bb1012
add some tests for 421 handling at destination 2021-05-25 15:11:58 +10:00
Audric Ackermann adb9208491
do not retry Oxen Server Error 2021-05-25 11:06:01 +10:00
Audric Ackermann 372119b17b
WIP 2021-05-25 09:53:11 +10:00
Audric Ackermann a2ea02960e
add some retries for not already retries requests 2021-05-24 16:03:52 +10:00
Audric Ackermann a777b09165
cleanup tests 2021-05-24 11:43:51 +10:00
Audric Ackermann f4c3c82e31
Add some test for onion path rebuild handling 2021-05-24 11:17:31 +10:00
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 2021-05-19 15:54:31 +10:00
Audric Ackermann 4514714d60
WIP 2021-05-19 11:44:30 +10:00
Audric Ackermann c2298c4c30
Merge branch 'clearnet' into scoring-system 2021-05-19 10:43:49 +10:00
Audric Ackermann 3393c7dfe4
Consider anything padding (#1641)
* Session v1.6.2 (#1639)

* padd Message buffer for all outgoing messages (even opengroupv2)

* pad and unpad message everywhere

attachment not padded for opengroup only

* lint

* enable fileserver v2 sending side

* removed all en unused local strings

* remove all unused keys for other locales

* update displayname even if we dont have avatar on incoming profile

* redesign group invitation message type

* ask confirmation before joining opengroup invitation

* remove the channelId from groupInvitation

* fallback to envelope timestamp if dataMessage.timestamp is 0

* match group invitation design with ios

* speed up first load of room message by prefetching token

* create convo for members if they don't exist

also, removing a private convo does not remove it entirely as we need
the convo to be able to remove members

* fix avatar download on restore when linking device

Fixes  #1601

* make sure the left member convo exist in rendering GroupUpdate

* Reply attachments (#1591)

* First attachment showing in reply composition.

* WIP: Adding thumbnail to quote response composition component.

* Added icon for voice recording attachment

* Updated formatting.

* Formatting.

* removed duplicate styling.

* WIP: Converting quote component to functional components.

* Fix bug where thumbnails for attachment replies wasn't showing.

* yarn Formatting.

* Removed old quote component.

* Add type to contentTypeSupported method.

* Moved  quote subcomponents out of Quote component.

* yarn format

* Add export to quote subcomponents.

* Fixing linting errors.

* remove commented line.

* Addressing PR comments.

* Allow pasting images into composition box as attachments (#1616)

* Allow pasting images into composition box as attachments

* Fix linter errors

* Fix typo

* Get snode from snode (#1614)

* force deleteAccount after 10sec timeout waiting for configMessage

* move some constants to file where they are used

* add a way to fetch snodes from snodes

* remove a snode from a pubkey's swarm if we get 421 without valid content

* remove getVersion from snodes

* hide groupMembers in right panel for non-group convo

* Fix fonts sans serif (#1619)

* force deleteAccount after 10sec timeout waiting for configMessage

* move some constants to file where they are used

* add a way to fetch snodes from snodes

* remove a snode from a pubkey's swarm if we get 421 without valid content

* remove getVersion from snodes

* hide groupMembers in right panel for non-group convo

* fix font sans serif by using roboto instead

Fixes #1617

* 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.

* Fix app image start for non-debian based distribs (#1622)

Fixes #1620

* fixup nickname dialog for enter key pressed event (#1623)

also add some type for it and remove unused props

* Fix attachment extension vnd (#1628)

* allow openoffice document extension and don't use

* allow opendocument to be shared with the extension rather than mimetype

Fixes #1593

* allow message without padding

* add test for odt files

* More Japanese translations (#1632)

* Translate some untranslated strings into Japanese

* Tweak some Japanese translations

* Add new Japanese translations

* WIP: Closed group reliability (#1630)

* WIP: added non-durable messaging function.

* WIP: Non-durable sending

* WIP: adding dialog box.

* Creating dialog if group invite message promises don't return true.

* removed console log

* applied PR changes, linting and formatting.

* WIP: allowing resend invite to failures.

* using lookup.

* WIP: recursively opening dialog.

* WIP: debugging reject triggering on confirmation modal.

* register events fix.

* Closed group invite retry dialog working.

* Added english text to messages.

* Prevent saving of hexkey pair if it already exists.

* Fixed nickname edit
input trimming end letter.

* Don't show closed group invite dialog unless it has failed at least once.

* Fix linting error.

* Fix plurality.

* Ensure admin members are included in all invite reattempts, mixed plurality.

* test fixing windows build

* Revert "test fixing windows build"

This reverts commit 8ed2e0891d.

Co-authored-by: Warrick <wcor690@aucklanduni.ac.nz>
Co-authored-by: shellhazard <unva1idated@protonmail.com>
Co-authored-by: beantaco <64012487+beantaco@users.noreply.github.com>

* attachment padding not enforced to be 0x00

* add message an attachment padding test

Co-authored-by: Warrick <wcor690@aucklanduni.ac.nz>
Co-authored-by: shellhazard <unva1idated@protonmail.com>
Co-authored-by: beantaco <64012487+beantaco@users.noreply.github.com>
2021-05-19 10:27:29 +10:00
Audric Ackermann 57192699fa
attachment padding not enforced to be 0x00 (#1640) 2021-05-19 10:04:51 +10:00
Audric Ackermann ed53ab43e6
WIP 2021-05-18 14:22:57 +10:00
Warrick Corfe-Tan 8374cbab08 Merge branch 'clearnet' into add-onion-path-indicator 2021-05-18 13:56:22 +10:00
Warrick 3854d0e10d
WIP: Closed group reliability (#1630)
* WIP: added non-durable messaging function.

* WIP: Non-durable sending

* WIP: adding dialog box.

* Creating dialog if group invite message promises don't return true.

* removed console log

* applied PR changes, linting and formatting.

* WIP: allowing resend invite to failures.

* using lookup.

* WIP: recursively opening dialog.

* WIP: debugging reject triggering on confirmation modal.

* register events fix.

* Closed group invite retry dialog working.

* Added english text to messages.

* Prevent saving of hexkey pair if it already exists.

* Fixed nickname edit
input trimming end letter.

* Don't show closed group invite dialog unless it has failed at least once.

* Fix linting error.

* Fix plurality.

* Ensure admin members are included in all invite reattempts, mixed plurality.
2021-05-18 13:12:51 +10:00
Audric Ackermann c599d0b629
WIP 2021-05-17 14:39:56 +10:00
Audric Ackermann a83a2afa4f
scoring system kind of working 2021-05-17 10:07:27 +10:00
Lucas Phang ae393d6344 Display actual IP address on onion path dialog 2021-05-14 17:14:57 +10:00
Lucas Phang 244817490a Display Onion Status Indicator 2021-05-14 17:14:56 +10:00
Audric Ackermann c63d5a4581
rename serviceNodeApi to SNodeApi 2021-05-13 14:52:13 +10:00
Audric Ackermann 12d40aa94e
Fix attachment extension vnd (#1628)
* allow openoffice document extension and don't use

* allow opendocument to be shared with the extension rather than mimetype

Fixes #1593

* allow message without padding

* add test for odt files
2021-05-13 13:32:52 +10:00
Audric Ackermann 8cb50ebc91
move onionPath building to outside of index.ts 2021-05-13 13:18:16 +10:00
Audric Ackermann 58abd08e6d
Get snode from snode (#1614)
* force deleteAccount after 10sec timeout waiting for configMessage

* move some constants to file where they are used

* add a way to fetch snodes from snodes

* remove a snode from a pubkey's swarm if we get 421 without valid content

* remove getVersion from snodes

* hide groupMembers in right panel for non-group convo
2021-05-12 10:34:53 +10:00
Audric Ackermann 6591702c08
create convo for members if they don't exist
also, removing a private convo does not remove it entirely as we need
the convo to be able to remove members
2021-05-10 10:31:00 +10:00
Audric Ackermann e10a3cd4a9
remove the channelId from groupInvitation 2021-05-07 15:01:15 +10:00
Audric Ackermann 248494f15b
redesign group invitation message type 2021-05-07 14:49:38 +10:00
Audric Ackermann e733f29395
lint 2021-05-07 11:49:45 +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 bc4bee6270
hide some logs 2021-05-06 16:02:47 +10:00
Audric Ackermann 5525312542
syncConf every 7 days and fix link device 2021-05-06 16:00:41 +10:00
Audric Ackermann 2b576de2cd
allow fileserverv2 attachments to be downloaded, upload disabled 2021-05-06 14:02:49 +10:00
Audric Ackermann 64eab5160d
remove zombies from the UI only 2021-05-05 18:14:59 +10:00
Audric Ackermann 2c40d1e623
hide checkmMark on showing group members 2021-05-05 16:40:16 +10:00
Audric Ackermann fae80c327a
mark convo as ActiveAt when we get a message adding us after left 2021-05-05 16:40:15 +10:00
Audric Ackermann eb0ddd85f4
add zombies logic for member leaving and removing 2021-05-05 16:40:15 +10:00
Audric Ackermann 7ec663df71
move SwarmPolling from window to require singleton 2021-05-05 16:40:14 +10:00
Audric Ackermann 4547afd97f
Poll for preview on room creation 2021-05-04 13:41:42 +10:00
Audric Ackermann 66d5fd93e2
Merge branch 'master' into open-group-v2 2021-05-04 12:34:07 +10:00
Audric Ackermann 3aa9ca785f
fix leave opengroup button right panel, and add memberCount 2021-05-03 10:40:43 +10:00
Audric Ackermann bdcdca206b
write attachment path with absolute attachment to disk for opengroupv2 2021-04-30 15:48:12 +10:00
Audric Ackermann 87c3fa0c55
refresh snode list and rebuild onion path once in a day 2021-04-30 15:15:59 +10:00
Audric Ackermann ad26e50de1
fix attachment upload for opengroupv1 and old file server 2021-04-30 11:37:28 +10:00
Audric Ackermann 710c9fa269
fix http request over onion 2021-04-30 11:12:44 +10:00
Audric Ackermann cca4de710b
remove featureFlag onion v2 => if onion enabled it is v2 2021-04-29 14:44:16 +10:00
Audric Ackermann 5289d4c2aa
add joinable rooms on opengroupv2 joining screen 2021-04-29 10:43:14 +10:00
Audric Ackermann 0c0da48150
remove pow 2021-04-28 15:24:45 +10:00
Audric Ackermann 8444c7cbfc
increase to ttl of 14 days for everything except TypingMessages 2021-04-28 15:18:11 +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 e274313f23
add and remove Moderatos opengroupv2 (not yet working server side) 2021-04-28 11:49:41 +10:00
Audric Ackermann 98b69c17f0
add userblocking opengroupv2 and quoting back of messages 2021-04-27 16:56:34 +10:00
Audric Ackermann 5916ce5cbe
add the ban/unban logic for opengroupv2 2021-04-27 12:06:13 +10:00
Audric Ackermann 4aeec224b4
add download of attachments for opengroupv2 2021-04-27 11:14:07 +10:00
Audric Ackermann bc938f650e
move AttachmentsDownload to typescript 2021-04-26 16:29:04 +10:00
Audric Ackermann 34148e67ec
add return of url after v2 attachment upload 2021-04-26 16:15:27 +10:00