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: black screen when last caller in a group #WPB-10652 #3550

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

damian-kaczmarek
Copy link
Contributor

@damian-kaczmarek damian-kaczmarek commented Oct 23, 2024

StoryWPB-10652 [Android] calling PiP mode

What's new in this PR?

Issues

Couldn't reproduce the original issue but was able to reproduce black screen in following scenario:

  • call to a group from account A
  • join to call with account B
  • enable video on account A
  • leave the call with account B
  • user A was left with a black screen instead of their own camera preview

Causes (Optional)

There was assumption that on list of participants first account is user currently logged it. Based on that first() was called. This was no longer true with picture in picture enabled as self participant was then removed.

Solutions

Used currently logged in UserId and compared it to a participant to decide if given call tile is selfUser.

Testing

How to Test

  • call to a group from account A
  • join to call with account B
  • enable video on account A
  • leave the call with account B
  • user A should see own preview video

Attachments (Optional)

Before:

before.mp4

After:

after.mp4

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.

@damian-kaczmarek damian-kaczmarek self-assigned this Oct 23, 2024
@echoes-hq echoes-hq bot added the echoes: bugs Technical or functional defects in the product label Oct 23, 2024
Copy link
Member

@ohassine ohassine left a comment

Choose a reason for hiding this comment

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

Good catch! but Picture in picture feature is not release yet. We can merge this one into develop and assign this ticket WPB-10652 instead to it. (WPB-11117 looks different this PR)

@damian-kaczmarek damian-kaczmarek changed the title fix: black screen when last caller in a group #WPB-11117 fix: black screen when last caller in a group #WPB-10652 Oct 25, 2024
@echoes-hq echoes-hq bot added the echoes: features End-user visible changes intended to create customer value label Oct 25, 2024
@damian-kaczmarek damian-kaczmarek force-pushed the fix/black-screen-when-last-user-group branch from 3bc400b to 505a18c Compare October 25, 2024 09:53
@damian-kaczmarek damian-kaczmarek changed the base branch from release/candidate to develop October 25, 2024 09:53
Copy link

Ups 🫰🟨

This PR is too big. Please try to break it up into smaller PRs.

@echoes-hq echoes-hq bot added echoes: throughput/ci-maintenance Changes we need to do to keep CI healthy and fast labels Oct 25, 2024
@damian-kaczmarek damian-kaczmarek force-pushed the fix/black-screen-when-last-user-group branch from 505a18c to cee1d36 Compare October 25, 2024 10:00
@damian-kaczmarek damian-kaczmarek requested review from ohassine, Garzas, a team, m-zagorski, yamilmedina and mathias-niboulies and removed request for a team October 25, 2024 10:15
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 45.33%. Comparing base (8501ad1) to head (29ba8c6).

Files with missing lines Patch % Lines
...g/ongoing/participantsview/VerticalCallingPager.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3550   +/-   ##
========================================
  Coverage    45.33%   45.33%           
========================================
  Files          472      472           
  Lines        15795    15795           
  Branches      2632     2632           
========================================
  Hits          7161     7161           
  Misses        7884     7884           
  Partials       750      750           
Files with missing lines Coverage Δ
...going/participantsview/gridview/CallingGridView.kt 0.00% <ø> (ø)
...g/ongoing/participantsview/VerticalCallingPager.kt 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8501ad1...29ba8c6. Read the comment docs.

Copy link
Contributor

Built wire-android-staging-compat-pr-3550.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3550.apk is available for download

Copy link

sonarcloud bot commented Nov 6, 2024

@damian-kaczmarek damian-kaczmarek added this pull request to the merge queue Nov 6, 2024
Merged via the queue into develop with commit 8f9cd86 Nov 6, 2024
11 of 13 checks passed
@damian-kaczmarek damian-kaczmarek deleted the fix/black-screen-when-last-user-group branch November 6, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: bugs Technical or functional defects in the product echoes: features End-user visible changes intended to create customer value echoes: throughput/ci-maintenance Changes we need to do to keep CI healthy and fast size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants