Commit Graph

4174 Commits

Author SHA1 Message Date
Maciej Surmacz 48204336da Allows for multiple send error notifications to be shown at the same time
Before, only one send error could be shown for a given user, due to how the
notification id was calculated.

MAILAND-2789
2022-04-05 15:28:10 +00:00
Maciej Surmacz 56c979ed59 Introduces a cleanup pending send worker
The aim of the worker is to clean up the pending sends by removing
the pending send object from the database and cancelling the enqueued
send message worker. In addition, a trigger worker is added in order
to satisfy the requirement of waiting for 2h only after being online
(we do not want to cancel the pending send if the user has been
offline the whole time). A trigger worker is used as it is the
simplest way to schedule the cleanup that will survive the app being killed.

MAILAND-2789
2022-04-05 15:28:10 +00:00
Maciej Surmacz a1eb3e892a Introduces a pending send repository
MAILAND-2789
2022-04-05 15:28:10 +00:00
Maciej Surmacz e18506b69e Introduces a worker repository
MAILAND-2789
2022-04-05 15:28:10 +00:00
Davide Giuseppe Farella d0cd097628 Merge branch 'feat/1498_unread-filter/2818_ui' into 'develop'
[1498, 2818] Unread filter UI

See merge request android/mail/proton-mail-android!1032
2022-04-05 15:27:43 +00:00
Davide Farella 8a627e3cfc Update Unread count as soon as we change Mailbox location
MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Davide Farella 2c179c90f4 Show "Updated just now" in MailboxActivity.kt
Hide while loading from API, show when `DataRefresh` is recived

MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Davide Farella 4a547d5a76 Implement UnreadChip in MailboxActivity.kt
MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Davide Farella 1f1e92de3d Design UnreadChip
MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Davide Farella 382fd61a1f Implement UnreadChip.kt
MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Davide Farella dbb1b5cc7a Implement UnreadChipUiModel.kt
MAILAND-1498,
MAILAND-2819
2022-04-05 14:23:39 +00:00
Stefanija Boshkovska e51cdb4344 Merge branch 'chore/update-to-core-7.1.9' into 'develop'
Update to core version 7.1.9

See merge request android/mail/proton-mail-android!1041
2022-04-05 14:17:53 +00:00
Stefanija Boshkovska 6bd57300df Remove code for showing an error that swipe action cannot be saved when offline
Core now supports saving the settings while offline, so we don't need
this error handling anymore.
2022-04-05 13:37:02 +00:00
Stefanija Boshkovska ea97ed535d Update to core version 7.1.9 2022-04-05 13:37:02 +00:00
Marin Thiercelin c14527c4c2 Merge branch 'fix/crypto/signature-verification-ui' into 'develop'
MAILAND-2406 : Fix the signature verification of message details

See merge request android/mail/proton-mail-android!1000
2022-04-05 13:32:55 +00:00
M. Thiercelin a1cd5433ec Update gopenpgp to v2.4.6 2022-04-05 09:36:05 +00:00
M. Thiercelin 18d5823e9b Fetch verification keys directly when decrypting body in message details.
Instead of fetching verification keys asynchronously and re-launching decryption
after they are ready, we block the decryption until the keys are fetched.

Also fixes the data transfer between the signature verification process and the
UI for the lock icons.

MAILAND-2046
2022-04-05 09:36:05 +00:00
Stefanija Boshkovska f5c5321a38 Merge branch 'fix/2828_remove-cannot-select-more-than-100-labels-dialog' into 'develop'
Remove the dialog that appears when more than 100 labels are selected in LabelsActionSheet

See merge request android/mail/proton-mail-android!1042
2022-04-05 09:08:19 +00:00
Stefanija Boshkovska 33fd73e34d Remove the dialog that appears when more than 100 labels are selected in LabelsActionSheet
This dialog was preventing users from selecting more than 100 labels
when wanting to apply labels because we couldn't send more than 100
labels to the worker because of a size limitation regarding input
parameters. This was a problem only for conversations. However, this
was preventing users from deselecting labels as well when there were
already more than 100 selected.

We don't need this dialog anymore, because the initial issue can be
fixed by chunking input parameters.

MAILAND-2828
2022-04-04 19:13:54 +02:00
Maciej Surmacz 7eef8b4388 Merge branch 'feat/2823_subscription-from-navigation-drawer' into 'develop'
Introduces a new drawer entry that opens the core subscriptions

See merge request android/mail/proton-mail-android!1037
2022-04-04 14:11:06 +00:00
Maciej Surmacz 6578df0894 Introduces a new drawer entry that opens the core subscriptions
MAILAND-2823
2022-04-04 13:29:05 +00:00
Zorica Stojchevska c5ff3f7e4a Merge branch 'chore/translations-2022-04-04_061919' into 'develop'
[i18n@d7a529a3] ~ Upgrade translations from crowdin

See merge request android/mail/proton-mail-android!1038
2022-04-04 07:16:30 +00:00
proton-ci 5802e20b17 [i18n@d7a529a3] ~ Upgrade translations from crowdin 2022-04-04 06:19:19 +00:00
Maciej Surmacz d7a529a38c Merge branch 'chore/2741_revert-additional-ping-failure-logging' into 'develop'
Removes the extra logging added to track down ping failures better

See merge request android/mail/proton-mail-android!994
2022-04-01 12:51:23 +00:00
Maciej Surmacz 028465db8b Removes extra logging when ping fails and userId from remaining logs 2022-04-01 11:52:16 +00:00
Stefanija Boshkovska 1cb43226a6 Merge branch 'fix/2586_2589_remote-content-in-edit-contact-screen' into 'develop'
Show a warning and request approval before loading remote content in edit contact screen

See merge request android/mail/proton-mail-android!1033
2022-04-01 09:53:38 +00:00
Stefanija Boshkovska aae5d77c4a Show a warning and request approval before loading remote content in edit contact screen
Sometimes the contact photo can be remote and in that case
we need to ask the user whether loading of such photo
should be allowed, since this can be a security risk.

MAILAND-2586
MAILAND-2589
2022-04-01 09:08:58 +00:00
Maciej Surmacz b24ebb757e Merge branch 'chore/update-core-to-7.1.7' into 'develop'
Updates core to 7.1.8

See merge request android/mail/proton-mail-android!1031
2022-03-31 15:52:44 +00:00
Maciej Surmacz 31105fcb73 Updates core to 7.1.8 2022-03-31 15:07:57 +00:00
Maciej Surmacz 8f4ac78777 Renames Header object to ProtonHeaders 2022-03-31 15:07:57 +00:00
Maciej Surmacz ebd21b5432 Makes sure we use the correct app version header format everywhere 2022-03-31 15:07:57 +00:00
Maciej Surmacz 49d6f2985c Updates core to 7.1.7 2022-03-31 15:07:57 +00:00
Davide Giuseppe Farella 3b2c8d5d6d Merge branch 'feat/1498_unread-filter/2819_data' into 'develop'
[1498, 2819] Unread filter Data layer

See merge request android/mail/proton-mail-android!1026
2022-03-31 15:06:29 +00:00
Davide Farella 522ff7a2d3 Fix querying messages with only one label
Before we were checking for a label at the start, in the middle or at
the end of the strings of labels, but it would not match a string
containing a single label

MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Davide Farella 94fd63d954 Fix Kdoc formatting in MessageDao.kt
MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Davide Farella 06d54da3aa Implement unread in MessageDao.kt
MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Davide Farella 64cff37004 Implement GetAllMessagesParameters.UnreadStatus in MessageApi.kt
MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Davide Farella b642aa593f Add GetAllMessagesParameters.UnreadStatus
MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Davide Farella 5b4f1ea9a3 Add PendingActionDatabase schema 4.json
MAILAND-1498,
MAILAND-2819
2022-03-31 16:26:12 +02:00
Stefanija Boshkovska 60208d1699 Merge branch 'fix/replace-wrong-onboarding-drawables' into 'develop'
Replace wrong onboarding drawables

See merge request android/mail/proton-mail-android!1034
2022-03-31 13:27:41 +00:00
Stefanija Boshkovska 607a414216 Replace wrong onboarding drawables 2022-03-31 12:09:47 +02:00
Maciej Surmacz 5622a241a9 Merge branch 'fix/crash-when-replying-to-message-sent-to-pm-me-address' into 'develop'
Uses ProtonButtons for a warning dialog

See merge request android/mail/proton-mail-android!1029
2022-03-31 08:31:27 +00:00
Maciej Surmacz 0563ebd367 Uses the ProtonButtons for warning dialog
Crash was related to the buttons not being cast to the correct class
2022-03-31 07:34:30 +00:00
Stefanija Boshkovska 5488731b33 Merge branch 'fix/2814_vibration-on-swipe-action-when-threshold-is-reached' into 'develop'
Vibrate on swipe action when threshold for action execution is reached

See merge request android/mail/proton-mail-android!1030
2022-03-30 16:55:01 +00:00
stefanija ccf1936219 Vibrate on swipe action when threshold for action execution is reached
MAILAND-2814
2022-03-30 16:07:27 +00:00
Davide Giuseppe Farella 07ecd33d4c Merge branch 'fix/CLIENT-4606_bypass-pin-from-notification' into 'develop'
[CLIENT-4606] Fix bypass pin lock opening a message from a notification, while the app is in foreground and locked

See merge request android/mail/proton-mail-android!1028
2022-03-30 13:59:03 +00:00
Davide Farella 867d8d1a09 Removed unused User.setManuallyLocked
CLIENT-4606
2022-03-30 13:18:49 +00:00
Davide Farella b94a272fe6 Fix pin lock dismissed on task cleared
For example, opening a message from a notification will create a new
task and it that case the pin lock would be bypassed.

CLIENT-4606
2022-03-30 13:18:49 +00:00
Davide Giuseppe Farella eb5c7f6705 Merge branch 'fix/2809_combined-contacts-empty-groups' into 'develop'
[2809 - 2810] Fix groups with combined contacts

See merge request android/mail/proton-mail-android!1021
2022-03-29 16:31:59 +00:00
Davide Farella 0264e8c104 Fix contacts groups randomly now loading in Composer
MAILAND-2809
2022-03-29 15:19:32 +00:00