-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: send and receive in-call reactions [#WPB-14254] #3759
Conversation
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
424abf8
to
1e32dd1
Compare
1e32dd1
to
b09b139
Compare
Built wire-android-staging-compat-pr-3759.apk is available for download |
Built wire-android-dev-debug-pr-3759.apk is available for download |
b09b139
to
4868534
Compare
Built wire-android-staging-compat-pr-3759.apk is available for download |
Built wire-android-dev-debug-pr-3759.apk is available for download |
app/src/main/kotlin/com/wire/android/ui/calling/SharedCallingViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/calling/SharedCallingViewModel.kt
Outdated
Show resolved
Hide resolved
@@ -87,7 +89,7 @@ fun FullScreenTile( | |||
.height(height) | |||
.padding(contentPadding), | |||
participantTitleState = it, | |||
isSelfUser = selectedParticipant.isSelfUser, | |||
isSelfClient = selectedParticipant.clientId == participants[0].clientId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you change it? Os there any reason to not use SelectedParticipant.isSelfUser
?
- in case of design changes and self user is not always in a first tile we'll have to make changes here too.
- It's preferred to as less logic in UI as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you join the same call from two devices then you get two participants with isSelfUser
flag set to true. So these users have incorrectly duplicated mute and flip camera buttons and video is only showing for one of them.
Needed to use a clientId to handle them correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so maybe lets update SelectedParticipant
by changing isSelfUser
to isSelfClient
or just adding isSelfClient
and using it from there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to fetch the clientId in the viewmodel. I think to make it correct we can add 'isSelfUser' flag to the UICallParticipant and use clientId to set it when mapping to UIParticipant. This way the flag will be correct across all UI code and will not depend on the participants ordering logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@borichellow please check updated logic for isSelfUser based on clientId.
app/src/main/kotlin/com/wire/android/ui/calling/controlbuttons/HangUpOngoingButton.kt
Show resolved
Hide resolved
4868534
to
e23e337
Compare
e23e337
to
bef82f9
Compare
Quality Gate passedIssues Measures |
Built wire-android-staging-compat-pr-3759.apk is available for download |
Built wire-android-dev-debug-pr-3759.apk is available for download |
https://wearezeta.atlassian.net/browse/WPB-14254
What's new in this PR?