Skip to content

Commit

Permalink
upscale message content
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jul 9, 2024
1 parent dd4896c commit d807b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Midjourney.Infrastructure/Handle/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ protected void FinishTask(TaskInfo task, SocketMessage message)
{
task.FailReason = "";
}
if (string.IsNullOrWhiteSpace(task.State))
{
task.State = "";
}

task.Success();
}
Expand Down
2 changes: 2 additions & 0 deletions src/Midjourney.Infrastructure/Handle/UpscaleSuccessHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ private void FindAndFinishUTask(IDiscordInstance instance, string finalPrompt, i
task.SetProperty(Constants.MJ_MESSAGE_HANDLED, true);
task.SetProperty(Constants.TASK_PROPERTY_FINAL_PROMPT, finalPrompt);
task.SetProperty(Constants.TASK_PROPERTY_MESSAGE_HASH, messageHash);
task.SetProperty(Constants.TASK_PROPERTY_MESSAGE_CONTENT, message.Content);

task.ImageUrl = imageUrl;
FinishTask(task, message);
task.Awake();
Expand Down

0 comments on commit d807b51

Please sign in to comment.