Merge pull request #326 from hchen2020/master

Fix user id.
This commit is contained in:
C. Oceania 2024-02-28 21:09:52 -06:00 committed by GitHub
commit 35f89e9be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,10 @@ public partial class ConversationService
#endif
message.CurrentAgentId = agent.Id;
message.SenderId = _user.Id;
if (string.IsNullOrEmpty(message.SenderId))
{
message.SenderId = _user.Id;
}
_storage.Append(_conversationId, message);