feat: send and receive in-call reactions [#WPB-14254]#3759
feat: send and receive in-call reactions [#WPB-14254]#3759sergeibakhtiarov merged 2 commits intodevelopfrom
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
| .padding(contentPadding), | ||
| participantTitleState = it, | ||
| isSelfUser = selectedParticipant.isSelfUser, | ||
| isSelfClient = selectedParticipant.clientId == participants[0].clientId, |
There was a problem hiding this comment.
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.
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.
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.
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.
@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
|
|
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?