akwizgran
2b1aed6caa
Update test expectations.
2022-05-27 17:38:06 +01:00
akwizgran
44b0955b9d
Allow status endpoint to be called with contact properties.
2022-05-27 17:26:55 +01:00
akwizgran
d43ef463a6
Check status endpoint with contact's auth token in integration test.
2022-05-27 13:01:26 +01:00
akwizgran
34337486e9
Use status endpoint for contact connectivity check.
2022-05-27 13:00:43 +01:00
akwizgran
6b790b59fa
Use status endpoint for connectivity check.
2022-05-26 15:11:05 +01:00
akwizgran
8b61a0279b
Move nested try block into private method.
2022-05-26 14:54:44 +01:00
akwizgran
94ce6bbb2c
Reject mailbox owner properties for mailbox update.
2022-05-26 14:49:33 +01:00
akwizgran
6358518f88
Add connectivity checkers for our own mailbox and a contact's mailbox.
2022-05-26 13:40:31 +01:00
akwizgran
ef6e3bb2a7
Refactor MailboxProperties and MailboxUpdateWithMailbox.
2022-05-26 13:40:31 +01:00
akwizgran
8ec998f645
Replace Supplier<Boolean> with more legible ApiCall interface.
2022-05-26 13:40:31 +01:00
akwizgran
f75d63fc46
Merge branch '2234-mailbox-api-task' into 'master'
...
Abstract task for calling an API endpoint
Closes #2234
See merge request briar/briar!1649
2022-05-26 12:27:14 +00:00
akwizgran
0c22c25995
Submit first try to IoExecutor directly.
2022-05-25 12:45:23 +01:00
akwizgran
7e249ecf70
Add convenience class for simple API calls.
2022-05-24 15:10:07 +01:00
akwizgran
274963d9d1
Add MailboxApiCaller for calling API endpoints with retries.
2022-05-24 15:10:07 +01:00
akwizgran
18b3865a86
Factor out Cancellable interface from TaskScheduler.
2022-05-24 15:10:07 +01:00
Torsten Grote
670cc34b12
Merge branch 'tor-state-enabling-when-zero-onion-router-connections' into 'master'
...
Fix OR connection counts, set Tor status to ENABLING when not connected to any ORs
See merge request briar/briar!1646
2022-05-20 16:54:34 +00:00
akwizgran
f387c3801b
Don't count pending OR connections, don't reset connection count.
...
Tor doesn't report status changes for bridge connections that fail during handshaking, which causes the pending connection count to become inaccurate.
We were resetting the connection counts when switching guard context, but this was a mistake caused by the pending connection count being inaccurate. The counts should not be reset, as Tor continues to report status changes for connected connections belonging to the old context.
It's no longer necessary to disable and re-enable the network when the Tor settings are updated. This only appeared to be necessary because we were wrongly resetting the connection counts.
2022-05-20 17:20:34 +01:00
Torsten Grote
aa759a636e
Merge branch 'limit-connection-pool-size' into 'master'
...
Keep one connection in the DB pool
See merge request briar/briar!1644
2022-05-20 14:23:47 +00:00
akwizgran
0b85aca932
Remove connectivity workaround that should no longer be needed.
2022-05-20 14:48:00 +01:00
akwizgran
d4cdedeed7
Set status to ENABLING when not connected to any guards/bridges.
2022-05-20 14:48:00 +01:00
Torsten Grote
9b10c12f23
Merge branch 'refactor-tor-plugin-factories' into 'master'
...
Refactor Tor plugin factories
See merge request briar/briar!1645
2022-05-20 11:55:23 +00:00
akwizgran
2bf490b973
Use non-default Tor ports for BridgeTest.
2022-05-19 14:12:36 +01:00
akwizgran
d2f25f2ebe
Refactor Tor plugin factories.
2022-05-19 14:12:36 +01:00
akwizgran
b3dcde9187
Merge branch '2301-update-contacts-about-change-in-mailbox-versions-that-client-supports' into 'master'
...
Send mailbox update to contacts if supported mailbox versions changed
Closes #2301
See merge request briar/briar!1642
2022-05-19 12:17:39 +00:00
Daniel Lublin
241e5e9f6e
Test for update sent when clientSupports is found to have changed on startup
2022-05-19 09:35:46 +02:00
Daniel Lublin
c59524df65
Make current tests independent of real CLIENT_SUPPORTS
2022-05-19 09:06:40 +02:00
Daniel Lublin
4467f9e260
Keep last sent clientSupports on record, sending update only if changed
2022-05-19 09:06:40 +02:00
Daniel Lublin
7e215e7f84
Keep MailboxUpdate immutable
2022-05-19 09:06:40 +02:00
Daniel Lublin
601ff50294
Send mailbox update to contacts if supported mailbox versions changed
2022-05-19 09:06:40 +02:00
akwizgran
9f839d9d12
Merge branch '2309-troubleshooting-wizard' into 'master'
...
Troubleshooting wizard for mailbox
Closes #2309
See merge request briar/briar!1640
2022-05-18 17:00:50 +00:00
akwizgran
1e4c28a30a
Merge branch '2299-method-for-fetching-mailboxs-supported-api-versions' into 'master'
...
Add method for fetching api versions that the mailbox supports
Closes #2299
See merge request briar/briar!1643
2022-05-18 12:18:48 +00:00
Daniel Lublin
bc0f9a984c
Add method for fetching api versions that the mailbox supports
2022-05-17 14:49:00 +02:00
Torsten Grote
15e0abffb0
Address review feedback for mailbox troubleshooting wizard
2022-05-16 11:44:23 -03:00
Torsten Grote
5254efb630
Troubleshooting wizard for mailbox
2022-05-16 10:56:58 -03:00
Torsten Grote
df22df22a0
Merge branch '2277-activity-not-found-exception' into 'master'
...
Catch ActivityNotFoundException when choosing files
Closes #2277
See merge request briar/briar!1628
2022-05-16 12:52:23 +00:00
Torsten Grote
23681ff7f7
Merge branch 'emoji-0.7.0' into 'master'
...
Upgrade emoji library to 0.7.0
Closes #1775
See merge request briar/briar!1630
2022-05-16 12:35:23 +00:00
Torsten Grote
57bebc0b87
Merge branch '2261-extra-logging' into 'master'
...
Add logging for message delivery, comments for initial messages exchanged in tests
See merge request briar/briar!1641
2022-05-16 11:18:02 +00:00
akwizgran
82057da962
Sync acks when re-adding contacts.
2022-05-16 11:05:14 +01:00
akwizgran
00b7518e49
Add comments to explain initial messages exchanged with contacts.
2022-05-16 11:05:10 +01:00
akwizgran
418ab99a3c
Log client IDs when validating and delivering messages.
2022-05-16 11:04:25 +01:00
akwizgran
49c14af0dc
Merge branch '2261-include-mailbox-api-version-in-mailbox-properties' into 'master'
...
Include mailbox API version in local and remote mailbox properties
Closes #2261
See merge request briar/briar!1621
2022-05-16 09:58:30 +00:00
Daniel Lublin
3f7aed7886
Rename to Mailbox update
2022-05-16 10:21:41 +02:00
Daniel Lublin
d2728dd29b
Assert that we have a local update
2022-05-16 10:07:35 +02:00
Daniel Lublin
84afc6d934
Let integration tests mind the mailbox prop update when adding contact
2022-05-13 16:19:51 +02:00
Daniel Lublin
a42d9eec1c
Include mailbox API version in local and remote mailbox properties
...
This changes the format of the mailbox properties update message, so
the major version of the client is bumped.
2022-05-13 16:19:51 +02:00
akwizgran
5d5d8d206c
Merge branch '2298-fetch-and-store-mailboxs-supported-api-versions-when-pairing' into 'master'
...
Fetch and store mailbox's supported API versions when pairing mailbox
Closes #2298
See merge request briar/briar!1622
2022-05-12 14:12:40 +00:00
akwizgran
5237df32e3
Merge branch '2226-defer-marking-messages-and-acks-as-sent' into 'master'
...
Defer marking messages and acks as sent
Closes #2296
See merge request briar/briar!1635
2022-05-12 13:59:17 +00:00
akwizgran
72e376f152
Merge branch 'db-shutdown-race' into 'master'
...
Fix race condition in DB shutdown
See merge request briar/briar!1620
2022-05-12 13:57:45 +00:00
Daniel Lublin
4d685a2617
Fetch and store mailbox's supported api versions when pairing
2022-05-09 14:17:30 +02:00
Daniel Lublin
16ab48d009
Allow storing int array in settings
2022-05-01 08:23:27 +02:00