Commit Graph

3005 Commits

Author SHA1 Message Date
Zorica Stojchevska 30e5087084 Update copyright
MAILAND-2696
2022-05-23 21:01:57 +00:00
proton-ci e25ec7da26 i18n: Upgrade translations from crowdin (298b702b). 2022-05-23 06:28:47 +00:00
proton-ci 58f533c4f3 i18n: Upgrade translations from crowdin (8ccfec72). 2022-05-17 08:34:30 +00:00
Maciej Surmacz 990b6d3b1a Refetches the pgp mime messages to get the attachments
As the pgp/mime messages are encrypted together with the message body,
the handling of those attachments needs to be different. The
LocalAttachment objects will contain all the attachment data and can't
be passed around between the activities.

The blocking call is far from perfect but making it async lead to race
conditions- the attachments sometimes would fail to be uploaded
correctly and not show in the attachments screen. As this is a rather
rare type of message, it should not have too much of an impact.

MAILAND-2894
2022-05-03 11:24:41 +02:00
Stefanija Boshkovska 845c7b1488 Update metrics sent when user switches between light/dark mode in details screen
MAILAND-2892
2022-04-29 14:48:20 +02:00
Davide Farella d2a4191332 Remove ProtonInput label from EditContactDetailsActivity.java
MAILAND-2897
2022-04-28 18:36:04 +02:00
Davide Farella 485c0dfac8 Fix crash on click on Birthday while editing contact
MAILAND-2897
2022-04-28 18:36:04 +02:00
Davide Farella eb09dff196 Remove usages of AppUtil.decorInAppIntent from
EditContactDetailsActivity.java

MAILAND-2897
2022-04-28 18:36:04 +02:00
Maciej Surmacz b57eb65696 Introduces a retry mechanism for embedded image download
MAILAND-2879
2022-04-21 13:33:29 +00:00
Stefanija Boshkovska c72bb87103 Fix injecting dark style in sent messages when the app is in dark mode
The problem was that we were sending a message that was styled according
to what we show in the app. Instead, for the sending, we need the clean
HTML message body of the parent message when we reply/forward. Initial
message content is the holder of the quoted text (parent message) and
the solution included setting its value to be the clean HTML body of the
parent message.

MAILAND-2847
2022-04-20 17:45:34 +02:00
Zorica Stojchevska 9ccf56e1df Revert "Updated Launcher Icons."
This reverts commit 8bb034d3
2022-04-20 10:56:06 +02:00
Zorica Stojchevska f4d52b2c32 Fix on the support@ link for some translations 2022-04-18 12:27:23 +02:00
proton-ci 0cb685c4cb [i18n@a3768e9f] ~ Upgrade translations from crowdin 2022-04-18 06:29:01 +00:00
Maciej Surmacz 970e334547 Fixes downloading of the pgp/mime message attachments
The pgp/mime messages are encrypted together with the attachments.
What that means is once we have decrypted the message, we already
have the attachments in memory, so there's no need to try to fetch
and decrypt them again.

MAILAND-2848
2022-04-15 14:31:49 +00:00
Stefanija Boshkovska 4d5faaeef7 Fix list in contact group recipients dialog going over the buttons
MAILAND-2867
2022-04-15 13:01:32 +00:00
Maciej Surmacz 3449fdea4f Fixes the contacts not showing in suggestions in composer
Observe the 'set up complete' value before fetching the contacts
and don't use a lateinit var for contact groups- as the value would
usually be uninitialised the first time around it was being accessed.

MAILAND-2866
2022-04-15 10:25:14 +02:00
M. Thiercelin b2dc0d154a
Use only the primary address key when uploading attachments for sending
The code was using all the address keys instead of only the primary key
to encrypt the attachments to upload.
This caused the key packet to contain several key packets (since the change in gopenpgp v2.4.3),
which was not accepted by the backend.
2022-04-14 17:05:00 +02:00
Maciej Surmacz 72bf6db4e8 Reviews the logs as a first step to clean up sentry
Removes some of the logging when not really needed and adds
filtering function to ignore a number of exceptions we do not care about
2022-04-14 09:59:36 +00:00
Zorica Stojchevska aa55a9d7cb Sender defaults to wrong address on reply/forward
We were using a wrongly sorted list to choose the correct address from,
now we use the address list inside the correct user and since the keys
start from 1 and positions from 0 that is why we had to subtract 1.

MAILAND-2846
2022-04-13 19:11:12 +02:00
Stefanija Boshkovska 1c02c7aa76 Upate core to version 7.1.11 2022-04-13 12:08:50 +02:00
Zorica Stojchevska db61d7a2cc Crash updating a contact
Worker has limitation of how much data can be passed to it and the
 encryptedData we were passing has a tendency to be heavy now we get the
  encryptedData of the contact from DB from withing the Worker to avoid
  having to pass the data..

MAILAND-2840
2022-04-12 17:55:35 +00:00
Zorica Stojchevska 574b1caec7 Change support@ link everywhere in app 2022-04-12 14:34:16 +00:00
Stefanija Boshkovska 07e2e6924e Stop showing trashed items in Drafts and Sent folders
This is to minimise confusion when it comes to draft/sent messages being
moved to another location and still showing up in the Drafts/Sent
folders.

MAILAND-2845
2022-04-12 13:29:06 +00:00
Davide Farella 8ca80f902e Create single string for Quote sender header
We were using 2 strings, which was problematic translation for language
which has a different order of the words

L10N-557
2022-04-12 14:10:37 +02:00
Maciej Surmacz 1e4f970d8c Fixes the hyperlink confirmation settings
The setting was saved and read from different preferences. Fixed
by introducing an account settings repo, to have a single place
of accessing those and hide the shared prefs implementation detail.

MAILAND-2843
2022-04-11 14:01:44 +00:00
proton-ci a3246573dc [i18n@ae2891d4] ~ Upgrade translations from crowdin 2022-04-11 06:21:38 +00:00
Zorica Stojchevska 998ad75b3f Declare StartOnboardingObserverInitializer in Manifest 2022-04-08 12:47:04 +02:00
Stefanija Boshkovska f11dfd2056 Replace usage of deprecated startActivityForResult with registerForActivityResult
MAILAND-2832
2022-04-08 10:35:22 +02:00
Stefanija Boshkovska 6dfcf4d59c Save the draft when exiting composer instead of showing a dialog with a question
Remove the dialog that asks whether to save the draft or not and save
the draft automatically when there are changes in the composer. After
saving it show a snackbar that the draft has been saved and offer an
option to move the draft to trash from the snackbar.

MAILAND-2832
2022-04-08 10:35:22 +02:00
Stefanija Boshkovska 0b85a15243 Delete draft when closing an empty composer
If an empty composer is closed, do not ask if a draft should be saved.
The draft should not be saved if the composer is empty. For now, there
is one limitation to this solution. If the user adds something in the
composer and then removes it, there is no way to check this scenario
reliably and then we'll ask whether the draft should be saved or not.

MAILAND-2832
2022-04-08 10:35:22 +02:00
Davide Farella 69c499c6ce Remove checkbox from hyperlink phishing dialog
Also removed DialogUtils.showTwoButtonInfoDialog.dismissOnButtonClick
as it's the default behaviour and cannot be changed

MAILAND-2830
2022-04-07 18:13:35 +02:00
Davide Farella 251781d259 Fix exception getting WebViewClient below API 26 in MessageDetailsAdapter.kt
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella 9f5650bedd Remove "IN_APP" extra from PmWebViewClientTest.kt
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella 84cdfc7b5d Implement hyperlink confirmation dialog for phishing messages
MAILAND-2829
2022-04-07 16:25:58 +02:00
Davide Farella bc749c0f2f Bump MessageDatabase.kt [15] -> [16]
Bump Room [2.3.0] -> [2.4.2]

MAILAND-2380
2022-04-07 16:25:58 +02:00
Davide Farella 205aa715ce Add Message.flags
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella 680daabf0c Sort Message's COLUMN constants alphabetically 2022-04-07 16:25:58 +02:00
Davide Farella c816bf394c Set phishing check in MessageDetailsPmWebViewClient 2022-04-07 16:25:58 +02:00
Davide Farella 84320fd97b Convert MessageDetailsListItem.kt in a sealed class
Sub-classes are now immutable data classes
2022-04-07 16:25:58 +02:00
Davide Farella 44bbbad308 Replace deprecated constructors in MessageDetailsListItem.kt 2022-04-07 15:25:52 +02:00
Davide Farella 606aaf499b Add MessageDetailsListItem.Header and MessageDetailsListItem.Body 2022-04-07 15:25:52 +02:00
Davide Farella a716b0c10c Format PmWebViewClient.kt to match Kotlin style 2022-04-07 15:25:52 +02:00
Davide Farella bb2a73469f Rename PMWebViewClient.kt to PMWebViewClient.kt to respect team
conventions
2022-04-07 15:25:52 +02:00
Davide Farella 14dd9ecbd7 Convert PMWebViewClient to Kotlin 2022-04-07 15:25:52 +02:00
Davide Farella 6759762904 Exit selection mode on toggle unread filter
MAILAND-2829
2022-04-07 10:05:06 +00:00
Davide Farella 445584a01b Change interaction colors in UnreadChip
changed in:
* selector_unread_messages_status_background.xml
* selector_unread_messages_status_text_color.xml

MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella 38058139dc Implement Unread Filter in MailboxActivity.kt
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella afaf743d9b Use MailboxState in MailboxActivity.kt and MailboxViewModel.kt
Replaced old flows with MailboxState.isUpdatedFromRemote and
MailboxState.unreadChip

MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella 0fbfa9cb7e Add MailboxState.isUpdatedFromRemote
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella 87fe6b6ac1 Add UnreadChipState.kt into MailboxState.kt
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00