From df6b6a07669bad5cc96db2ff309e24bd6bb9b00e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 9 May 2025 18:20:46 -0400 Subject: [PATCH] ToastNotifications Updates --- .../components/NotificationComponent.tsx | 16 +++++++--------- .../toastNotifications/components/styles.css | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx index 207d99bb..da91fc97 100644 --- a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx +++ b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx @@ -123,14 +123,12 @@ export default ErrorBoundary.wrap(function NotificationComponent({
- {body.length > 500 ? body.slice(0, 500) + "..." : body} -
- ) - ) : null} - + {renderBody && ( ++ {(richBody ?? body).toString().slice(0, 500)} + {(richBody ?? body).toString().length > 500 && "..."} +
+ )} {PluginSettings.store.renderImages && image &&{`${attachments} attachment${attachments > 1 ? "s" : ""} ${attachments > 1 ? "were" : "was"} sent.`}
}