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

fix(mls-client): skip MLSClient registration if registered client is mlsCapable (WPB-10723) 🍒 #2988

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 3, 2024

BugWPB-10723 [Android] When user logs in for a second time on the same client, he receives server error

This PR was automatically cherry-picked based on the following PR:

Original PR description:



PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Check if the MLS Client has registered, then skip the registration.

Issues

When the user logs out without clearing the data, we were trying to register the exist MLSClient again; that lead to an error!

Solutions

If the client has registered before and the user log in again to continue on a previously established session no need to register the client again and simply skip the api call.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Have a user with MLS Enabled on their team
1- Log in and log out without clearing the data
2- When you try to log in again with the same use, you should be able to proceed successfully


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Copy link
Contributor Author

github-actions bot commented Sep 9, 2024

Test Results

3 196 tests  +1   3 089 ✔️ +1   3m 56s ⏱️ +9s
   548 suites ±0      107 💤 ±0 
   548 files   ±0          0 ±0 

Results for commit 9e28ba6. ± Comparison against base commit 8af4c1b.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Sep 9, 2024

Datadog Report

Branch report: fix/skip-mls-registration-if-registered-client-is-mlscapable-cherry-pick
Commit report: a5f5da8
Test service: kalium-jvm

✅ 0 Failed, 3089 Passed, 107 Skipped, 12.54s Total Time

@echoes-hq echoes-hq bot added the echoes: bugs Technical or functional defects in the product label Sep 18, 2024
Copy link

sonarcloud bot commented Sep 25, 2024

@vitorhugods vitorhugods added this pull request to the merge queue Sep 25, 2024
Merged via the queue into release/candidate with commit ae89716 Sep 25, 2024
22 checks passed
@vitorhugods vitorhugods deleted the fix/skip-mls-registration-if-registered-client-is-mlscapable-cherry-pick branch September 25, 2024 08:48
github-actions bot added a commit that referenced this pull request Sep 25, 2024
…mlsCapable (WPB-10723) 🍒 (#2988)

* fix(mls-client): skip MLSClient registration if registered client is mlsCapable (#2987)

* test: update to Mockative 2.0 syntax

---------

Co-authored-by: Mojtaba Chenani <[email protected]>
Co-authored-by: Alexandre Ferris <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
Co-authored-by: Vitor Hugo Schwaab <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2024
…mlsCapable (WPB-10723) 🍒 (#2988) (#3032)

* fix(mls-client): skip MLSClient registration if registered client is mlsCapable (#2987)

* test: update to Mockative 2.0 syntax

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mojtaba Chenani <[email protected]>
Co-authored-by: Alexandre Ferris <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
Co-authored-by: Vitor Hugo Schwaab <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants