From 0974a6a7af1a7fdff6096ddcf7be8e52af28ba99 Mon Sep 17 00:00:00 2001 From: alexbcberio Date: Thu, 6 Jan 2022 01:34:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Bug=20has=20been=20fixe?= =?UTF-8?q?d=20on=20the=20library?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/chatClient/clientActions/hasVip/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/chatClient/clientActions/hasVip/index.ts b/src/backend/chatClient/clientActions/hasVip/index.ts index 8c3c57a..b070f0e 100644 --- a/src/backend/chatClient/clientActions/hasVip/index.ts +++ b/src/backend/chatClient/clientActions/hasVip/index.ts @@ -9,10 +9,7 @@ async function hasVip(channel: string, username: string): Promise { } if (!cache[channel]) { - const vips = await chatClient.getVips(channel); - - // * last VIP has a "." at the end of the username (bug on library?) - cache[channel] = vips.map(vip => vip.replace(/\.$/, "")); + cache[channel] = await chatClient.getVips(channel); setTimeout(() => { delete cache[channel];