Skip to content

Commit fd6d8fd

Browse files
authored
Merge pull request #1183 from yileicn/master
optimize RoleContent
2 parents 669639d + d91b0a3 commit fd6d8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infrastructure/BotSharp.Abstraction/Conversations/Models/RoleDialogModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public string RoleContent
152152
}
153153
else
154154
{
155-
text = !string.IsNullOrWhiteSpace(RichContent?.Message?.Text) ? RichContent.Message.Text : Content;
155+
text = !string.IsNullOrWhiteSpace(Content) ? Content : RichContent?.Message?.Text;
156156
}
157157

158158
return text;

0 commit comments

Comments
 (0)