feat: check extension to display external images

This commit is contained in:
Nihal Gonsalves
2023-07-14 13:10:24 +02:00
parent 8ba4b72b37
commit 384cabede5
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ export const formatMessage = (m) => {
};
const imageRegex = /\.(png|jpe?g|gif|webp)$/i;
const isImage = (attachment) => {
export const isImage = (attachment) => {
if (!attachment) return false;
// if there's a type, only take that into account