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

Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in RoomView #28278

Conversation

florianduros
Copy link
Member

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

@florianduros florianduros added the T-Task Tasks for the team like planning label Oct 23, 2024
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch from 14f5088 to 11ddcc1 Compare October 23, 2024 13:47
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch from 3e64ea0 to a61968f Compare November 22, 2024 09:01
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch 2 times, most recently from 98b0590 to 5217283 Compare November 22, 2024 09:33
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch 2 times, most recently from f965ce1 to 8b42571 Compare November 22, 2024 14:11
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch from 8b42571 to cce60d4 Compare November 22, 2024 15:16
@florianduros florianduros marked this pull request as ready for review November 22, 2024 16:16
@florianduros florianduros requested a review from a team as a code owner November 22, 2024 16:16
@@ -67,6 +67,9 @@ test.describe("Cryptography", function () {
await page.locator(".mx_AuthPage").getByRole("button", { name: "I'll verify later" }).click();
await app.viewRoomByName("Test room");

// In this case, the call to cryptoApi.isEncryptionEnabledInRoom is taking a long time to resolve
await page.waitForTimeout(4000);
Copy link
Member

Choose a reason for hiding this comment

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

4 seconds? That seems terrifying, given how few rooms this client is in this sounds like a blocker to using the new API? 4 seconds to open a room is awful?

Copy link
Member Author

@florianduros florianduros Nov 26, 2024

Choose a reason for hiding this comment

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

To open a room in a regular case, it's not taking 4 seconds. I tested manually and the other tests are running fine.

This test is going through already multiple issues (waiting 10sec for keys to be backed up) and I assume this is a special case

@florianduros florianduros added this pull request to the merge queue Nov 26, 2024
Merged via the queue into develop with commit af846f8 Nov 26, 2024
32 checks passed
@florianduros florianduros deleted the florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted branch November 26, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants