Skip to content

Display error dialog if Element Call can't be joined #4919

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jmartinesp
Copy link
Member

Content

When on room call type, we listen for the 'join' action for 10s, and if we don't receive one we display an error dialog which will close the call screen.

Motivation and context

This will allow us to remove the top app bar in a following PR.

Tests

It's kind of difficult to test unless you add an artificial delay before receiving the join action when joining a call, but maybe it's possible by using an unstable network connection. In my case I just added the delay.

Tested devices

  • Physical
  • Emulator
  • OS version(s): 14

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

When on room call type, we listen for the 'join' action for 10s, and if we don't receive one we display an error dialog which will close the call screen.
@jmartinesp jmartinesp requested a review from a team as a code owner June 23, 2025 14:27
@jmartinesp jmartinesp requested review from ganfra and removed request for a team June 23, 2025 14:27
@jmartinesp jmartinesp added the PR-Misc For other changes label Jun 23, 2025
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/JKyAWr

Copy link

Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.30%. Comparing base (7c79f8b) to head (3d60dce).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4919   +/-   ##
========================================
  Coverage    80.30%   80.30%           
========================================
  Files         2156     2156           
  Lines        57373    57375    +2     
  Branches      7225     7225           
========================================
+ Hits         46074    46076    +2     
  Misses        8851     8851           
  Partials      2448     2448           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines -148 to -153
} else if (parsedMessage.action == WidgetMessage.Action.SendEvent) {
// This event is received when a member joins the call, the first one will be the current one
val type = parsedMessage.data?.jsonObject?.get("type")?.jsonPrimitive?.contentOrNull
if (type == "org.matrix.msc3401.call.member") {
isJoinedCall = true
}
Copy link
Member Author

Choose a reason for hiding this comment

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

According to the VOIP team, this should work the same. I didn't see any changes in behaviour when I tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant