diff --git a/manifest.json b/manifest.json index df43135..4c6527b 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "discordID": "372148345894076416", "github": "SammCheese" }, - "version": "1.2.8", + "version": "1.2.9", "updater": { "type": "store", "id": "dev.sammcheese.InvisibleChat" diff --git a/package.json b/package.json index bef0fa1..cd46e29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "invisible-chat", - "version": "1.2.8", + "version": "1.2.9", "description": "Encrypt your Discord Messages", "engines": { "node": ">=14.0.0" diff --git a/src/plaintextPatches.ts b/src/plaintextPatches.ts index c62dd06..c724edd 100644 --- a/src/plaintextPatches.ts +++ b/src/plaintextPatches.ts @@ -8,7 +8,7 @@ const patches: types.PlaintextPatch[] = [ // Message Indicator match: /var .,.,.=(.)\.className,.=.\.message,.=.\.children,.=.\.content,.=.\.onUpdate/, replace: - "try{$1?.content[0].match(window.invisiblechat?.INV_DETECTION)?$1?.content.push(window.invisiblechat?.Indicator):null}catch(e){};$&", + "try{$1?.message?.content.match(window.invisiblechat?.INV_DETECTION)?$1?.content.push(window.invisiblechat?.Indicator):null}catch(e){};$&", }, ], },