diff options
author | Dominik <dominik.buettner1711@gmail.com> | 2023-06-15 03:18:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 03:18:34 +0200 |
commit | 543fdf49431e0a88f5aae6ab54120ac8e43fd8e9 (patch) | |
tree | 01547dee7baf334342f9cf1ac581975f325424fb /src/plugins/hideAttachments.tsx | |
parent | 12253837236b0e7b0ed2a90ef58ff691b7bb9154 (diff) | |
download | Vencord-543fdf49431e0a88f5aae6ab54120ac8e43fd8e9.tar.gz Vencord-543fdf49431e0a88f5aae6ab54120ac8e43fd8e9.tar.bz2 Vencord-543fdf49431e0a88f5aae6ab54120ac8e43fd8e9.zip |
New Plugin: UnsuppressEmbeds (#1262)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/hideAttachments.tsx')
-rw-r--r-- | src/plugins/hideAttachments.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/plugins/hideAttachments.tsx b/src/plugins/hideAttachments.tsx index 83a924e..f608e05 100644 --- a/src/plugins/hideAttachments.tsx +++ b/src/plugins/hideAttachments.tsx @@ -18,6 +18,7 @@ import { get, set } from "@api/DataStore"; import { addButton, removeButton } from "@api/MessagePopover"; +import { ImageInvisible, ImageVisible } from "@components/Icons"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { ChannelStore } from "@webpack/common"; @@ -26,17 +27,6 @@ let style: HTMLStyleElement; const KEY = "HideAttachments_HiddenIds"; -const ImageVisible = () => ( - <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> - <path d="M5 21q-.825 0-1.413-.587Q3 19.825 3 19V5q0-.825.587-1.413Q4.175 3 5 3h14q.825 0 1.413.587Q21 4.175 21 5v14q0 .825-.587 1.413Q19.825 21 19 21Zm0-2h14V5H5v14Zm1-2h12l-3.75-5-3 4L9 13Zm-1 2V5v14Z" /> - </svg> -); -const ImageInvisible = () => ( - <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> - <path d="m21 18.15-2-2V5H7.85l-2-2H19q.825 0 1.413.587Q21 4.175 21 5Zm-1.2 4.45L18.2 21H5q-.825 0-1.413-.587Q3 19.825 3 19V5.8L1.4 4.2l1.4-1.4 18.4 18.4ZM6 17l3-4 2.25 3 .825-1.1L5 7.825V19h11.175l-2-2Zm7.425-6.425ZM10.6 13.4Z" /> - </svg> -); - let hiddenMessages: Set<string> = new Set(); const getHiddenMessages = () => get(KEY).then(set => { hiddenMessages = set ?? new Set<string>(); |