Skip to content

Commit

Permalink
fix: wrong caller name in outgoing call (WPB-9758) (#3129)
Browse files Browse the repository at this point in the history
Signed-off-by: alexandreferris <[email protected]>
  • Loading branch information
alexandreferris authored Jun 26, 2024
1 parent 6b1abd6 commit 43a460f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private fun ConnectivityStatusBar(
IncomingCallContent(callerName = connectivityInfo.callerName)

is ConnectivityUIState.OutgoingCall ->
OutgoingCallContent(callerName = connectivityInfo.callerName)
OutgoingCallContent(conversationName = connectivityInfo.conversationName)

ConnectivityUIState.Connecting ->
StatusLabel(
Expand Down Expand Up @@ -183,11 +183,11 @@ private fun IncomingCallContent(callerName: String?) {
}

@Composable
private fun OutgoingCallContent(callerName: String?) {
private fun OutgoingCallContent(conversationName: String?) {
Row {
StatusLabelWithValue(
stringResource = R.string.connectivity_status_bar_return_to_outgoing_call,
callerName = callerName,
callerName = conversationName,
color = MaterialTheme.wireColorScheme.onPositive
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class CommonTopAppBarViewModel @Inject constructor(
return if (activeCall.status == CallStatus.INCOMING) {
ConnectivityUIState.IncomingCall(activeCall.conversationId, activeCall.callerName)
} else if (activeCall.status == CallStatus.STARTED) {
ConnectivityUIState.OutgoingCall(activeCall.conversationId, activeCall.callerName)
ConnectivityUIState.OutgoingCall(activeCall.conversationId, activeCall.conversationName)
} else {
ConnectivityUIState.EstablishedCall(activeCall.conversationId, activeCall.isMuted)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ sealed interface ConnectivityUIState {

data class OutgoingCall(
val conversationId: ConversationId,
val callerName: String?
val conversationName: String?
) : ConnectivityUIState
}

0 comments on commit 43a460f

Please sign in to comment.