Fix ToastNotification Pings

This commit is contained in:
thororen1234 2025-05-19 12:26:21 -04:00
parent 9ec50e677a
commit 7930b449dd
No known key found for this signature in database

View file

@ -123,12 +123,13 @@ export default ErrorBoundary.wrap(function NotificationComponent({
</button>
</div>
<div>
{renderBody && (
<p className="toastnotifications-notification-p">
{(richBody ?? body).toString().slice(0, 500)}
{(richBody ?? body).toString().length > 500 && "..."}
</p>
)}
{renderBody ? (
richBody ?? (
<p className="toastnotifications-notification-p">
{body.length > 500 ? body.slice(0, 500) + "..." : body}
</p>
)
) : null}
{PluginSettings.store.renderImages && image && <img className="toastnotifications-notification-img" src={image} alt="ToastNotification Image" />}
{footer && <p className="toastnotifications-notification-footer">{`${attachments} attachment${attachments > 1 ? "s" : ""} ${attachments > 1 ? "were" : "was"} sent.`}</p>}
</div>