We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8685425 commit fa8078fCopy full SHA for fa8078f
1 file changed
src/store/mainStore/actions.js
@@ -479,7 +479,17 @@ export default function mainStoreActions() {
479
return handleHttpAuthErrors(async () => {
480
if (reply) {
481
const original = await this.fetchMessage(reply.data.databaseId)
482
+ if (reply?.smartReply) {
483
+ const AiDisclaimerText = t('mail', '(Parts of this reply was generated with AI)')
484
485
+ if (original.hasHtmlBody) {
486
+ reply.smartReply = `${reply.smartReply}
487
+ <p></p>
488
+ <em>${AiDisclaimerText}</em>`
489
+ } else {
490
+ reply.smartReply = `${reply.smartReply}\n\n<p></p> ${AiDisclaimerText}`
491
+ }
492
493
// Fetch and transform the body into a rich text object
494
if (original.hasHtmlBody) {
495
data.isHtml = true
0 commit comments