Commit Graph
100 Commits
Author SHA1 Message Date
akwizgran 8991762b0c Final code review nitpicks. 2021-04-15 16:12:38 +01:00
akwizgran 2fc6741c99 Remove redundant method. 2021-04-15 16:03:01 +01:00
akwizgran 1075af73f2 Change default timer duration to 7 days. 2021-04-15 11:54:48 +01:00
akwizgranandTorsten Grote 458add0c9c Don't advertise support for messaging features that are disabled by flags. 2021-04-13 08:48:57 -03:00
akwizgranandTorsten Grote f2374eb141 Count sent messages in integration tests. 2021-04-13 08:48:56 -03:00
akwizgranandTorsten Grote f1453ed4c4 Show disabled menu item if we support feature but contact doesn't. 2021-04-13 08:48:52 -03:00
akwizgranandTorsten Grote 3a2146cb03 Don't advertise support for disappearing messages unless flag is enabled. 2021-04-13 08:48:52 -03:00
akwizgranandTorsten Grote 24eb76de20 Hide disappearing messages menu item unless feature flag is enabled. 2021-04-13 08:48:51 -03:00
akwizgranandTorsten Grote 693478e0a5 Add feature flag for self-destructing messages. 2021-04-13 08:48:51 -03:00
akwizgranandTorsten Grote 644afe8995 Wait for events to be delivered before continuing with test. 2021-04-13 08:48:50 -03:00
akwizgranandTorsten Grote c66c428124 Log how long it takes to deliver private messages and attachments. 2021-04-13 08:48:49 -03:00
akwizgranandTorsten Grote db5b2ea9b6 Remove redundant call to getAutoDeleteTimer(). 2021-04-13 08:48:49 -03:00
akwizgranandTorsten Grote d84603bce2 Check group counts in AutoDeleteIntegrationTest. 2021-04-13 08:48:48 -03:00
akwizgranandTorsten Grote b128370299 Include legacy messages when recalculating group count. 2021-04-13 08:48:48 -03:00
akwizgranandTorsten Grote 240e619248 Delete private messages when their timers expire (needs UI support). 2021-04-13 08:48:48 -03:00
akwizgranandTorsten Grote c89bde08db Move ConversationManagerImpl to conversation package. 2021-04-13 08:48:47 -03:00
akwizgranandTorsten Grote 3ecd1c62b8 Set default timer duration to 1 minute for testing. 2021-04-13 08:48:47 -03:00
akwizgranandTorsten Grote e3c5497283 Update javadoc to explain that a new timer can be set. 2021-04-13 08:48:46 -03:00
akwizgranandTorsten Grote 4bd8ee8ccf Pass message IDs to cleanup hooks in batches. 2021-04-13 08:48:46 -03:00
akwizgranandTorsten Grote 43b437af92 Group messages by group ID when fetching them from database. 2021-04-13 08:48:46 -03:00
akwizgranandTorsten Grote 56e0d62597 Throw an exception if no cleanup hook was registered. 2021-04-13 08:48:45 -03:00
akwizgranandTorsten Grote d10e5f025d Remove copypasta. 2021-04-13 08:48:45 -03:00
akwizgranandTorsten Grote b1a80691db Add comment to explain that starting timer may be a no-op. 2021-04-13 08:48:44 -03:00
akwizgranandTorsten Grote 049aa61e85 Stop the timer if no hook has been registered. 2021-04-13 08:48:44 -03:00
akwizgranandTorsten Grote 7026361234 Add javadocs for CleanupManager and CleanupHook. 2021-04-13 08:48:44 -03:00
akwizgranandTorsten Grote 5e30dc5bf4 Simplify deadline comparison logic. 2021-04-13 08:48:43 -03:00
akwizgranandTorsten Grote 024bfc8ec8 Stop the cleanup timer if the hook returns false. 2021-04-13 08:48:42 -03:00
akwizgranandTorsten Grote 04e5e8e4d0 Add cleanup manager. 2021-04-13 08:48:38 -03:00
akwizgranandTorsten Grote 7c5d47733f Query message IDs rather than metadata when only IDs are needed. 2021-04-13 08:46:11 -03:00
akwizgranandTorsten Grote c032befe6f Provide clock for UI tests. 2021-04-13 08:46:08 -03:00
akwizgranandTorsten Grote 55eccde031 Add some comments. 2021-04-13 08:46:08 -03:00
akwizgranandTorsten Grote 5716820439 Sync acks for initial messages when setting up integration tests. 2021-04-13 08:46:08 -03:00
akwizgranandTorsten Grote 17d433dd9b Allow time travel in integration tests. 2021-04-13 08:46:07 -03:00
akwizgranandTorsten Grote 000812bf6d Inject DefaultTaskSchedulerModule.EagerSingletons at startup in headless app. 2021-04-13 08:46:07 -03:00
akwizgranandTorsten Grote 5e2187a877 Refactor integration tests to allow clock to be replaced. 2021-04-13 08:46:06 -03:00
akwizgranandTorsten Grote 1c93a79448 Use Collections.sort() to satisfy Animal Sniffer. 2021-04-13 08:46:03 -03:00
akwizgranandTorsten Grote e12ad0cd79 Add integration tests for timer mirroring. 2021-04-13 08:46:02 -03:00
akwizgranandTorsten Grote 8d6bd29b93 Add method for UI and tests to get current timer. 2021-04-13 08:46:02 -03:00
akwizgranandTorsten Grote f941a73999 Update integration tests. 2021-04-13 08:46:02 -03:00
akwizgranandTorsten Grote c3057141d8 Don't receive auto-delete timer from remote accept message as introducee. 2021-04-13 08:46:01 -03:00
akwizgranandTorsten Grote 49080cb64c Hook up incoming messages to the auto-delete manager. 2021-04-13 08:46:01 -03:00
akwizgranandTorsten Grote 27dbe23914 Mirror the remote auto-delete timer. 2021-04-13 08:46:01 -03:00
akwizgranandTorsten Grote d7a2de5817 Add integration tests for auto-delete timer. 2021-04-13 08:46:00 -03:00
akwizgranandTorsten Grote 0328aa0630 Forwarded accept messages aren't visible to the introducee. 2021-04-13 08:46:00 -03:00
akwizgranandTorsten Grote b6cf302131 Only use conversation timestamp for messages that will be visible in conversation. 2021-04-13 08:46:00 -03:00
akwizgranandTorsten Grote e2a894acd3 Get timestamp for abort message in same way as other messages. 2021-04-13 08:45:59 -03:00
akwizgranandTorsten Grote 00ed6d9bb8 Look up auto-delete timer when creating private group invitation. 2021-04-13 08:45:59 -03:00
akwizgranandTorsten Grote c9a9734368 Use the right timestamp when signing private group invitation. 2021-04-13 08:45:58 -03:00
akwizgranandTorsten Grote efc56a8724 Provide TransactionManager. 2021-04-13 08:45:58 -03:00
akwizgranandTorsten Grote 6e6923b108 Look up conversation timestamp when creating group invitation messages. 2021-04-13 08:45:58 -03:00
akwizgranandTorsten Grote f459beccdb Move lookup of latest conversation timestamp to core for blog and forum sharing. 2021-04-13 08:45:57 -03:00
akwizgranandTorsten Grote 751c5a3245 Move lookup of latest conversation timestamp to core. 2021-04-13 08:45:57 -03:00
akwizgranandTorsten Grote 8488499da6 Add transactional variant of getGroupCount(). 2021-04-13 08:45:57 -03:00
akwizgranandTorsten Grote 96a7e3c425 Send current minor version of messaging client to contacts. 2021-04-13 08:45:56 -03:00
akwizgranandTorsten Grote 0427b12d52 Check that timer argument is legal before storing. 2021-04-13 08:45:56 -03:00
akwizgranandTorsten Grote 9256c66fcc Add unit tests for AutoDeleteManagerImpl. 2021-04-13 08:45:55 -03:00
akwizgranandTorsten Grote 706f4e1c4c Implement AutoDeleteManager. 2021-04-13 08:45:55 -03:00
akwizgranandTorsten Grote 96debcd616 Add dummy implementation of AutoDeleteManager. 2021-04-13 08:45:54 -03:00
akwizgranandTorsten Grote 07f20e1e0d Refactor auto-delete code from Bramble to Briar. 2021-04-13 08:45:54 -03:00
akwizgranandTorsten Grote fee2e503bd Rewrap lines. 2021-04-13 08:45:54 -03:00
akwizgranandTorsten Grote f9f260bbc1 Factor out methods for storing and retrieving contact ID. 2021-04-13 08:45:53 -03:00
akwizgranandTorsten Grote 61718192ee Factor out method for validating auto-delete timers. 2021-04-13 08:45:53 -03:00
akwizgranandTorsten Grote 27893f9cdd Update comments. 2021-04-13 08:45:53 -03:00
akwizgranandTorsten Grote 9b0b80ef04 Add unit tests for validating auto-delete timer. 2021-04-13 08:45:52 -03:00
akwizgranandTorsten Grote 3e1c2df4b1 Update private group invitation client to include self-destruct timers. 2021-04-13 08:45:52 -03:00
akwizgranandTorsten Grote fa745410cc Update blog and forum sharing clients to include self-destruct timers. 2021-04-13 08:45:51 -03:00
akwizgranandTorsten Grote a427624e8d Update message parsing and encoding to include auto-delete timer. 2021-04-13 08:45:51 -03:00
akwizgranandTorsten Grote 3798ca1e17 Update introduction validator to support auto-delete timers. 2021-04-13 08:45:51 -03:00
akwizgranandTorsten Grote 113120b3ab Add constant for NO_AUTO_DELETE_TIMER, address review comments. 2021-04-13 08:45:50 -03:00
akwizgranandTorsten Grote b10ca5b77f Add unit tests for private message validation. 2021-04-13 08:45:50 -03:00
akwizgranandTorsten Grote f10e3d756a Fix comments in PrivateMessageValidator. 2021-04-13 08:45:50 -03:00
akwizgranandTorsten Grote 9608b974ec Add integration test for auto-delete timer in private messages. 2021-04-13 08:45:49 -03:00
akwizgranandTorsten Grote 3b6cc9c633 Add auto-deletion timer to private messages. 2021-04-13 08:45:47 -03:00
akwizgran 5305dd62d1 Merge branch '1872-key-agreement' into 'master'
Finish migrating KeyAgreementActivity to ViewModel

Closes #1982 and #1872

See merge request briar/briar!1357
2021-04-12 13:19:51 +00:00
akwizgran a066190c60 Merge branch '57-detect-db-durability-failures' into 'master'
Implement dirty flag to detect durability failures

Closes #57

See merge request briar/briar!1424
2021-04-12 13:17:28 +00:00
akwizgranandTorsten Grote cdae8b35f5 Another small refactoring to make control flow easier to understand. 2021-04-12 10:06:49 -03:00
akwizgran 36525fbe9d Merge branch 'promo-video' into 'master'
Instrumentation test for tutorial video and sign-in

Closes #1967

See merge request briar/briar!1423
2021-04-12 10:46:03 +00:00
akwizgran 212751c835 Return a value instead of passing a runnable argument. 2021-04-08 17:11:07 +01:00
akwizgran fe1c6acebb Remove workaround for Android issue #190966. 2021-04-08 17:03:28 +01:00
akwizgran bebf3bbc39 Merge branch '1826-settings-view-model' into 'master'
Finish migrating SettingsFragment to ViewModel

Closes #1942 and #1826

See merge request briar/briar!1350
2021-04-01 13:20:12 +00:00
akwizgran 62cca1335f Bump version numbers for 1.2.20 release. 2021-03-29 13:33:12 +01:00
akwizgran 11a18859fb Update translations. 2021-03-29 13:33:12 +01:00
akwizgran 1116a7e125 Merge branch 'update-bridges-again' into 'master'
Remove a failing bridge

See merge request briar/briar!1422
2021-03-29 12:32:11 +00:00
akwizgran 415b315292 Add a Tor Browser default bridge. 2021-03-29 13:01:27 +01:00
akwizgran 9818ec2b66 Remove a failing bridge. 2021-03-29 12:55:04 +01:00
akwizgran 372516646d Merge branch '1970-blog-bugs' into 'master'
Fix issues with blogs after refactoring

See merge request briar/briar!1421
2021-03-26 14:32:11 +00:00
akwizgran 7c45c90de9 Replace a failing bridge with a Tor Browser default bridge. 2021-03-26 09:27:36 +00:00
akwizgran c2a4b5e26a Bump version numbers for 1.2.19 release. 2021-03-25 17:36:04 +00:00
akwizgran feac0ad802 Update translations. 2021-03-25 17:34:02 +00:00
akwizgran 60478eba3f Merge branch '1866-blog-controller' into 'master'
Migrate BlogController and FeedController to ViewModel

Closes #1891 and #1866

See merge request briar/briar!1342
2021-03-25 17:25:43 +00:00
akwizgran 3639952612 Merge branch 'espresso-ci' into 'master'
Run instrumentation tests in CI when briar-android changes

Closes admin#20

See merge request briar/briar!1413
2021-03-25 15:47:18 +00:00
akwizgran c4a654b267 Merge branch '1979-feedback-crash' into 'master'
Don't crash when pressing SHOW with user information when sending feedback

Closes #1979

See merge request briar/briar!1418
2021-03-25 13:29:43 +00:00
akwizgran 87799b743c Add Burmese translation to language chooser. 2021-03-24 15:28:33 +00:00
akwizgran b898a7c370 Update translations, add Burmese translation. 2021-03-24 13:54:00 +00:00
akwizgran 225fd6fd49 Merge branch 'headless-remove-type-args-in-jar-sorting-algorithm' into 'master'
Remove redundant type args in briar-headless/build.gradle

See merge request briar/briar!1416
2021-03-23 12:38:53 +00:00
akwizgran 2257c005b3 Merge branch 'faster-animations' into 'master'
Use a central attribute for animation speed

See merge request briar/briar!1368
2021-03-15 15:57:26 +00:00
akwizgran 2b0815aaac Merge branch '1951-exclude-files-from-backup' into 'master'
Exclude all our files from backup

Closes #1951

See merge request briar/briar!1408
2021-03-15 13:25:52 +00:00
akwizgran a9e83491d3 Test that a max-length attachment fits into a record. 2021-03-15 13:17:07 +00:00
akwizgran 43740777d4 Raise MAX_CONTENT_TYPE_BYTES to 80, lower MAX_PRIVATE_MESSAGE_TEXT_LENGTH.
In case we ever want to send "application/vnd.openxmlformats-officedocument.wordprocessingml.document" attachments.
2021-03-12 09:45:19 +00:00
akwizgran 8b4ff2dc8a Catch NPE from BluetoothSocket#connect(). 2021-03-11 18:00:45 +00:00