mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-22 12:57:01 -04:00
Fix ToastNotification Pings
This commit is contained in:
parent
9ec50e677a
commit
7930b449dd
1 changed files with 7 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue