From 7930b449dd988978c845608338f32a7cf867212e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 19 May 2025 12:26:21 -0400 Subject: [PATCH] Fix ToastNotification Pings --- .../components/NotificationComponent.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx index da91fc97..3ace74d9 100644 --- a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx +++ b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx @@ -123,12 +123,13 @@ export default ErrorBoundary.wrap(function NotificationComponent({
- {(richBody ?? body).toString().slice(0, 500)} - {(richBody ?? body).toString().length > 500 && "..."} -
- )} + {renderBody ? ( + richBody ?? ( ++ {body.length > 500 ? body.slice(0, 500) + "..." : body} +
+ ) + ) : null} {PluginSettings.store.renderImages && image &&{`${attachments} attachment${attachments > 1 ? "s" : ""} ${attachments > 1 ? "were" : "was"} sent.`}
}