Remove GRUU from call log address if any
This commit is contained in:
parent
341c112d54
commit
1f6fecb28b
2 changed files with 9 additions and 2 deletions
|
@ -95,7 +95,10 @@ class DetailCallLogFragment : GenericFragment<HistoryDetailFragmentBinding>() {
|
|||
viewLifecycleOwner
|
||||
) {
|
||||
it.consume { callLog ->
|
||||
val address = callLog.remoteAddress
|
||||
// To remove the GRUU if any
|
||||
val address = callLog.remoteAddress.clone()
|
||||
address.clean()
|
||||
|
||||
if (coreContext.core.callsNb > 0) {
|
||||
Log.i("[History] Starting dialer with pre-filled URI ${address.asStringUriOnly()}, is transfer? ${sharedViewModel.pendingCallTransfer}")
|
||||
sharedViewModel.updateDialerAnimationsBasedOnDestination.value =
|
||||
|
@ -111,6 +114,7 @@ class DetailCallLogFragment : GenericFragment<HistoryDetailFragmentBinding>() {
|
|||
navigateToDialer(args)
|
||||
} else {
|
||||
val localAddress = callLog.localAddress
|
||||
Log.i("[History] Starting call to ${address.asStringUriOnly()} with local address ${localAddress.asStringUriOnly()}")
|
||||
coreContext.startCall(address, localAddress = localAddress)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -223,7 +223,10 @@ class MasterCallLogsFragment : MasterFragment<HistoryMasterFragmentBinding, Call
|
|||
viewLifecycleOwner,
|
||||
) {
|
||||
it.consume { callLogGroup ->
|
||||
val remoteAddress = callLogGroup.lastCallLog.remoteAddress
|
||||
// To remove the GRUU if any
|
||||
val remoteAddress = callLogGroup.lastCallLog.remoteAddress.clone()
|
||||
remoteAddress.clean()
|
||||
|
||||
val conferenceInfo = coreContext.core.findConferenceInformationFromUri(remoteAddress)
|
||||
when {
|
||||
conferenceInfo != null -> {
|
||||
|
|
Loading…
Reference in a new issue