Commit 2b30260c by Oleksandr Barabash

message reference removed from the conversation ID

parent 16d449ab
...@@ -399,7 +399,7 @@ class CosmosClient: ...@@ -399,7 +399,7 @@ class CosmosClient:
async def create_conversation_reference(self, turn_context: TurnContext)\ async def create_conversation_reference(self, turn_context: TurnContext)\
-> Dict[str, Any]: -> Dict[str, Any]:
""" Save Conversation Regerence """ """ Save Conversation Reference """
from config import CosmosDBConfig from config import CosmosDBConfig
Log.i(__name__, "create_conversation_reference") Log.i(__name__, "create_conversation_reference")
...@@ -408,7 +408,9 @@ class CosmosClient: ...@@ -408,7 +408,9 @@ class CosmosClient:
reference_json = ConversationReference.get_schema().dump(reference) reference_json = ConversationReference.get_schema().dump(reference)
container = await self.get_conversations_container() container = await self.get_conversations_container()
reference_json.update({ reference_json.update({
CosmosDBConfig.Conversations.PK: reference.conversation.id CosmosDBConfig.Conversations.PK:
# removing message reference!
reference.conversation.id.split(";")[0]
}) })
def bl() -> Dict[str, str]: def bl() -> Dict[str, str]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment