Fixed the "send to" issue, where you could select the bias-of-the-day (#183)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-11-02 11:55:09 +01:00
1 parent 8bd54e6d61
commit bd97c0fb4b
4 files changed
+15 -9

No files matched your search

@@ -267,6 +267,9 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
protected Task SendToAssistant(Tools.Components destination, SendToButton sendToButton)
{
if (!destination.AllowSendTo())
return Task.CompletedTask;
var contentToSend = sendToButton == default ? string.Empty : sendToButton.UseResultingContentBlockData switch
{
false => sendToButton.GetText(),