Temporarily remove emoji library

This commit is contained in:
Bill 2023-01-03 02:41:45 -05:00
parent 955e801547
commit b54660a4b1

View File

@ -1,5 +1,3 @@
import * as joypixels from 'emoji-toolkit';
const allowedColours: Map<string, string> = new Map(); const allowedColours: Map<string, string> = new Map();
allowedColours.set('r', 'red'); allowedColours.set('r', 'red');
@ -44,7 +42,7 @@ export const RoomChatFormatter = (content: string) =>
let result = ''; let result = '';
content = encodeHTML(content); content = encodeHTML(content);
content = (joypixels.shortnameToUnicode(content) as string) //content = (joypixels.shortnameToUnicode(content) as string)
if(content.startsWith('@') && content.indexOf('@', 1) > -1) if(content.startsWith('@') && content.indexOf('@', 1) > -1)
{ {