TP-66116 | fix deeplink redirection bug (#10854)

This commit is contained in:
Varun Jain
2024-05-15 17:05:05 +05:30
committed by GitHub
parent dfcf5d609b
commit 93f020fca9

View File

@@ -94,6 +94,15 @@ class NaviChatActivity :
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
val newProductConfigId =
intent
?.extras
?.getParcelable<NaviChatSystemLocalData>(NAVI_CHAT_SYSTEM_LOCAL_DATA)
?.source
if (newProductConfigId != null && newProductConfigId != productConfigId) {
finish()
startActivity(intent)
}
chatFragment?.scrollChatToLatestMessageReceived()
}
@@ -121,6 +130,12 @@ class NaviChatActivity :
bundle.putString(SCREEN_NAME, it)
productConfigId = it
}
if (productConfigId == null) {
productConfigId =
intent.extras
?.getParcelable<NaviChatSystemLocalData>(NAVI_CHAT_SYSTEM_LOCAL_DATA)
?.source
}
arguments = bundle
}