Since different EntityField objects can have the same fieldName, the way the library's native code was creating these objects caused EntityFields to be overwritten when creating more than one with the same fieldName. This problem was solved by introducing exclusive keys for each object, AKA the entityFieldKey. The preChatDataKey for PreChatData was created to keep a pattern and also avoid this kind of problem in the future.
Fix the params doFind and doCreate of createPreChatData being passed to the native side in the wrong order.
Types of changes
Description of the proposed changes
Since different
EntityField
objects can have the samefieldName
, the way the library's native code was creating these objects causedEntityFields
to be overwritten when creating more than one with the samefieldName
. This problem was solved by introducing exclusive keys for each object, AKA theentityFieldKey
. ThepreChatDataKey
forPreChatData
was created to keep a pattern and also avoid this kind of problem in the future.Fix the params
doFind
anddoCreate
ofcreatePreChatData
being passed to the native side in the wrong order.