152 Commits
Author SHA1 Message Date
Dat Vu 56db1436e7 TF-5022 T-14 Start the mobile app on the last shown account (#5168) 2026-11-26 15:20:22 +07:00
Dat Dang d764ec2391 Keep the basic-auth login out of the Hive box (secure storage on mobile, session storage on web) (#5163) 2026-11-26 10:47:48 +07:00
Dat Vu 1861b186a5 TF-5022 T-13 Notify delegated mailboxes and open a notification tap in its account (#5166) 2026-11-25 11:53:27 +07:00
dab246 012bc1b069 TF-5022 T-03 Filter WebSocket and FCM state changes per account with StateChangeAccountFilter, merge debounced changes per account in WebSocketController, FcmMessageController and EmailChangeListener, and read delegatedAccounts in the iOS notification extension 2026-11-13 17:22:04 +07:00
Dat H. Pham e0df685a14 Cherry pick/v0.40.x fixes to master (#5082) 2026-11-02 16:24:00 +07:00
Dat VuandDat H. Pham c0eb30d2d6 TF-4809 Part 1-C: Apply consent in iOS notification extension (#4836)
* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Harden NSE consent persistence

* TF-4809 Part C: Fix duplicate Mockito mock generation

* TF-4809 Part C: Use rethrow for Sentry errors

* TF-4809 Part C: Fix analyzer warnings

* TF-4809 Move Sentry cleanup to session teardown

* TF-4809 Fix BaseController test isolation

* TF-4809 Add tests for consent reset on session cleanup

* TF-4809 Reset Sentry consent on session cleanup

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-10-05 12:15:05 +07:00
Đặng Đạt 770bd30dfc 2509 Cover the noopener decision for links opened from the EML previewer
Addresses: 621393, 622054
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621393
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622054
2026-10-05 10:20:52 +07:00
Dang Dat f541de05de 2509 Route AppUtils.launchLink and ICS conference links through the scheme allow-list
AppUtils.launchLink was the one shared entry point for opening links
externally, but it launched any URL/scheme unguarded, including its own
Safari<17 branch which called window.open directly and skipped
url_launcher_web's own scheme block and noopener/noreferrer. Route both
paths through ExternalLinkPolicy (now also allowing mailto, since
launchLink already had legitimate mailto callers) and restore
noopener/noreferrer on the Safari branch.

The calendar invite's video-conference extension fields
(X-OPENPAAS-VIDEOCONFERENCE / X-GOOGLE-CONFERENCE) are attacker-controlled
and only checked for non-empty values before reaching the same launch
path via the "join" button; filter them through the same allow-list at
the source.
2026-10-05 10:20:52 +07:00
Dang Dat 96dd60b373 2509 Restrict openApp deep links to allow-listed hosts and show a toast when refused 2026-10-05 10:07:54 +07:00
Benoit TELLIERandClaude Opus 5.5 f3be3cd84c TF-4861 Accept num sizes in LocalizedFileSizeFormatter
UnsignedInt.value is typed num, which broke compilation of quota
extensions. Accept num and normalize to an integer byte count.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 16:30:57 +07:00
Benoit TELLIERandClaude Opus 5.5 97baa1e0b7 TF-4861 Localize storage size units and decimal separator
Quota sizes in storage settings were formatted with the filesize package,
which always uses English units and a decimal point. Format them with the
current locale's decimal separator and French byte units (o, Ko, Mo, Go...),
and pluralize 'utilisés' in the French translation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 16:30:57 +07:00
dab246 13feb347d9 TF-4623 Integrate design system event card invitation
Signed-off-by: dab246 <tdvu@linagora.com>
2026-09-18 18:36:17 +07:00
Fernando da Silva Sousa 57034dfa2f feat: add Brazilian Portuguese localization (#4812) 2026-09-10 10:54:38 +07:00
Dat Dang de880a8b5c Implement fetchJson for workplace web (#4804) 2026-09-09 17:01:57 +07:00
Dang DatandCursor 66e18c5d43 TF-4728 Drive picker jmap implementation
review-comment: 3826784554

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3826784554

review-comment: 3826964437

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3826964437

review-comment: 3827029379

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827029379

review-comment: 3827067099

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827067099

review-comment: 3827112203

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827112203

review-comment: 3827153966

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827153966

review-comment: 3828671202

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3828671202

review-comment: 3828857602

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3828857602

review-comment: 5391955302

https://github.com/linagora/tmail-flutter/pull/4767#issuecomment-5391955302

review-comment: 3841473359, 3841484408

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841473359

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841484408

review-comment: 3841580769

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841580769

review-comment: 3841909306

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841909306

fixup! TF-4728 Drive picker jmap implementation

Fixes toast suppression regression surfaced by the test added in
81b6e05faf63aecf81ae4e97980f9e48bb67e916
https://github.com/linagora/tmail-flutter/commit/81b6e05faf63aecf81ae4e97980f9e48bb67e916

Claude-Session: https://claude.ai/code/session_01H7h265h6rRmMivviyMbNVh

review-comment: 3842242663

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842242663

review-comment: 3842324987

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842324987

review-comment: 3842341155

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842341155

review-comment: 3842447793

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842447793

review-comment: 3842492984

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842492984

(test) some edge cases for concurrency runner

(test) mixed pick should toast when transfer cannot start

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:26:59 +07:00
Dat H. Pham 285e926a0d fix: InvalidStateError in IndexDatabase prevent state be updated (#4717) 2026-07-27 14:06:54 +07:00
Dat H. Pham 52e418934d fix: keep share manager subject open across dashboard teardown
Dashboard onClose closed the singleton EmailReceiveManager's BehaviorSubject.
After a close/reopen cycle (logout/login, route recreation) the next dashboard
subscribed to the dead subject; a later live share then landed on a freshly
recreated subject the listener never subscribed to, so the composer never
opened. Clear pending data by emitting an empty list instead of closing, so
the subject lives for the singleton's lifetime and keeps delivering shares.
2026-07-07 14:50:51 +07:00
Dat H. Pham 43e99d9170 fix: prevent empty initial-media result from clobbering a live share
Subscribe to the live media stream before resolving getInitialMedia, and
apply the cold-start result only when non-empty. A share can land on the
live EventChannel before getInitialMedia resolves; on a normal (non-share)
launch getInitialMedia returns empty, so applying it unconditionally
overwrote the just-arrived share — silently dropping warm-app shares that
land while startup is still settling.

Also add onError/catchError logging to both media sources and a
deterministic regression test that gates getInitialMedia behind a Completer
to reproduce the race.
2026-07-07 14:50:51 +07:00
Dat H. Pham d7037cfb38 fix mailto link with Twake Mail 2026-07-07 14:50:51 +07:00
Dat Dang 7ad09bd2d5 TF-4449 Drive backend integration (#4629) 2026-06-30 13:31:54 +07:00
Dat Dang bdf59ce9e3 TF-4081 Prevent network error log user out on mobile (#4531) 2026-05-22 14:12:33 +07:00
dab246 0ec37d998c TF-4269 Fix Sentry
release version: keep full version including -rc suffix

      Use full pubspec version (e.g. 0.28.3-rc08) as SENTRY_RELEASE for both
      Android and iOS, matching the version the app reports at runtime.
      Validation still compares base versions only (strips -rc suffix) to
      allow rc tags to match the base version in pubspec.
2026-04-22 15:41:28 +07:00
dab246 230cbf647f TF-4269 Integrate Sentry into iOS NSE and automate dSYM upload in CI 2026-04-22 15:41:28 +07:00
Dang Dat 77c2ef745f TF-4308 add domain state, interactor, model extensions, and localization 2026-04-14 17:16:10 +07:00
dab246 55e27c78ed TF-4265 Additional config for include and exclude keywords 2026-04-07 13:20:25 +07:00
dab246 8a21e35d1e fix: Prefer reusing AppBaseException instead of redefining the exception contract CacheException and RemoteException 2026-03-10 11:06:16 +07:00
dab246 437c46f5ff fix(sentry): resolve minified exception types on web release 2026-03-10 11:06:16 +07:00
dab246 2e8a11e7eb refactor(sentry): standardize exceptions to prevent Sentry minification 2026-03-10 11:06:16 +07:00
dab246 616a9247e8 fix(cnb): add FORCE_EMAIL_QUERY to env.file
(cherry picked from commit 90347a845e)
2026-01-29 18:00:36 +07:00
dab246 9760b6f077 TF-4243 Implement delete a label in presentation layer 2026-01-27 15:08:02 +07:00
dab246 997c558b91 TF-4236 Fix minor: Filename uses grammatically incorrect article. 2026-01-27 12:04:11 +07:00
dab246 879b18bc45 TF-4236 Fix guard delete UI when no handler is provided. 2026-01-27 12:04:11 +07:00
dab246 1058b94363 TF-4236 Implement remove a label from an thread 2026-01-27 12:04:11 +07:00
dab246 3ef66bbbda TF-4236 Implement remove a label from an email when unselect in context menu Label as 2026-01-27 12:04:11 +07:00
dab246 bac101021e TF-4233 Implement edit label action 2026-01-26 09:13:54 +07:00
dab246 94fd6f8071 TF-4195 Add Label to Thread 2026-01-19 11:34:43 +07:00
dab246 78de7de3a6 TF-4195 Implement add a Label to an email 2026-01-19 11:34:43 +07:00
dab246 6c959fcf81 TF-4178 Implement create new label 2026-01-19 11:34:43 +07:00
dab246 ec75bb3cab TF-4136 Add config Sentry 2026-01-15 09:46:51 +07:00
dab246 a23d15a9ca TF-4136 refactor(logging): replace logError with logWarning for non-critical cases 2026-01-06 13:53:22 +07:00
Dang Dat 9f1373c7e5 fixup! TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Dang Dat 86dec27d67 fixup! TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Dang Dat 2b909aeb1c TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Théo Poizat 26593b50ef Move AI env var from main to scribe package 2025-12-19 19:03:39 +07:00
Théo Poizat 29e90f256f Add AI related env var
AI_ENABLED allows to test AI features only in some wanted environment.

AI_API_KEY and AI_API_URL allows to call the LLM while we wait for tmail backend endpoints.
It will be removed when tmail backend endpoints are ready.
2025-12-19 19:03:39 +07:00
dab246 d6e959c4d9 TF-4145 Create paywall url from workplaceFqdn 2025-11-17 14:24:30 +07:00
dab246 43de7edd47 TF-4145 Implement get oidc user_info from endpoint of oidc configuration 2025-11-17 14:24:30 +07:00
dab246 972b20ec16 TF-4050 Preview and download uploaded file in composer on web 2025-11-11 17:48:33 +07:00
dab246 92286b48e1 TF-4050 refactor: move attachment preview & download logic to download controller 2025-11-11 17:48:33 +07:00
dab246 58c05c38b2 TF-4053 Implement move folder content on mailbox list view 2025-11-05 05:34:21 +07:00