TP-66116 | fix deeplink redirection bug (#10854)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user