Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact support setting option #3452

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

florentos17
Copy link
Collaborator

tackling this issue

disclaimer: i could not test it because i could not find a server that advertizes the contactSupport capability

Copy link

This PR has been deployed to https://linagora.github.io/tmail-flutter/3452.

@chibenwa
Copy link
Member

disclaimer: i could not test it because i could not find a server that advertizes the contactSupport capability

Sent privatly

@chibenwa
Copy link
Member

Can you please record a little demo video of this fix?

@florentos17
Copy link
Collaborator Author

here is a demo on mobile:
Screencast from 28-01-2025 16:09:56.webm

for some reason when i launch the web version connected to https://jmap.govmu.org/, the page does not update with the new option, or any other change at all... but it does update when i connect to https://jmap.lin-saas.dev, so here is a screenshot:

Screenshot from 2025-01-28 16-42-06

chibenwa
chibenwa previously approved these changes Jan 29, 2025
@florentos17
Copy link
Collaborator Author

florentos17 commented Jan 31, 2025

the force push was to clean the commit history ; i also added some unit tests

some comments about the second commit:

  1. currently, tmail-backend advertizes the ContactSupport capability as a DefaultCapability, hence the new getContactSupportCapability which can now handle both.
  2. moreover, sometimes the advertized capability is actually empty (no email address and no link), so it is advertized as supported, but is not really supported... the new getContactSupportCapability also handles this case.

but maybe the correct way to handle this would be to change the advertizing done on tmail-backend side ?

@tddang-linagora
Copy link
Contributor

tddang-linagora commented Feb 3, 2025

  • Nothing happens when click "Contact support" on web
Screen.Recording.2025-02-03.at.14.38.42.mov

@dab246
Copy link
Member

dab246 commented Feb 3, 2025

the force push was to clean the commit history ; i also added some unit tests

some comments about the second commit:

  1. currently, tmail-backend advertizes the ContactSupport capability as a DefaultCapability, hence the new getContactSupportCapability which can now handle both.
  2. moreover, sometimes the advertized capability is actually empty (no email address and no link), so it is advertized as supported, but is not really supported... the new getContactSupportCapability also handles this case.

but maybe the correct way to handle this would be to change the advertizing done on tmail-backend side ?

You're right, we forgot to add the new capabilities classes to the capabilities converter so it didn't parse correctly. We've fixed that, see the commits for details.

@dab246
Copy link
Member

dab246 commented Feb 3, 2025

  • Nothing happens when click "Contact support" on web

Screen.Recording.2025-02-03.at.14.38.42.mov

Fixed

@florentos17
Copy link
Collaborator Author

We've fixed that, see the commits for details.

yes, thank you for the changes !

@dab246
Copy link
Member

dab246 commented Feb 4, 2025

Demo

  • Web:
Screen.Recording.2025-02-04.at.12.03.26.mov
  • Mobile:
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-02-04.at.12.09.15.mp4

dab246
dab246 previously approved these changes Feb 4, 2025
tddang-linagora
tddang-linagora previously approved these changes Feb 4, 2025
@hoangdat hoangdat dismissed stale reviews from tddang-linagora and dab246 February 5, 2025 11:06

The merge-base changed after approval.

@dab246
Copy link
Member

dab246 commented Feb 6, 2025

@florentos17 Please don't force push! You lost the commits I fixed for you. I'll update it. Please don't do anything. Thanks

@florentos17
Copy link
Collaborator Author

I only force pushed because dat pham's force push on master added many commits on this branch so I removed those, but your 4 commits are still here ? I'm very sorry if I lost anything, it wasnt intentional.

@dab246
Copy link
Member

dab246 commented Feb 6, 2025

I only force pushed because dat pham's force push on master added many commits on this branch so I removed those, but your 4 commits are still here ? I'm very sorry if I lost anything, it wasnt intentional.

Okay. Everything is fine, I fixed it.

@dab246 dab246 added the customer label Feb 7, 2025
@@ -13,7 +14,9 @@ class SessionDataSourceImpl extends SessionDataSource {
@override
Future<Session> getSession() {
return Future.sync(() async {
return await _sessionAPI.getSession();
return await _sessionAPI.getSession(
converters: SessionExtensions.customMapCapabilitiesConverter,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add defaultConverter too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants