Allow gif links for chat images (closes #41)
This commit is contained in:
parent
bb670d7795
commit
c712d97189
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ const IMAGE_TYPES = [
|
||||||
`jpeg`,
|
`jpeg`,
|
||||||
`webp`,
|
`webp`,
|
||||||
`svg`,
|
`svg`,
|
||||||
|
`gif`,
|
||||||
];
|
];
|
||||||
|
|
||||||
export function chatImageLinks() {
|
export function chatImageLinks() {
|
||||||
|
|
@ -95,6 +96,7 @@ function chatMessageHandler(chatLog, message, options) {
|
||||||
|
|
||||||
// Prevent cancellation for non-matching messages
|
// Prevent cancellation for non-matching messages
|
||||||
const match = message.match(pattern);
|
const match = message.match(pattern);
|
||||||
|
console.log({match, message, pattern});
|
||||||
if (!match) { return };
|
if (!match) { return };
|
||||||
|
|
||||||
mutateAndResendMessage(chatLog, message, options);
|
mutateAndResendMessage(chatLog, message, options);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue