diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt index 77bdc664b9..5260330475 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt @@ -90,7 +90,7 @@ class HomeDetailViewModel @AssistedInject constructor( observeSyncState() observeRoomGroupingMethod() observeRoomSummaries() - updateShowDialPadTab() + updatePstnSupportFlag() observeDataStore() callManager.addProtocolsCheckerListener(this) session.flow().liveUser(session.myUserId).execute { @@ -152,10 +152,10 @@ class HomeDetailViewModel @AssistedInject constructor( } override fun onPSTNSupportUpdated() { - updateShowDialPadTab() + updatePstnSupportFlag() } - private fun updateShowDialPadTab() { + private fun updatePstnSupportFlag() { setState { copy(pstnSupportFlag = callManager.supportsPSTNProtocol) }