From b06e4532a12fd7028712a49b24ca2a75acc91f14 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 3 Jun 2021 19:37:46 -0400 Subject: [PATCH] Use real sender name ya dingus --- puppet/src/contentscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppet/src/contentscript.js b/puppet/src/contentscript.js index 9b4d0b8..e6bd6e9 100644 --- a/puppet/src/contentscript.js +++ b/puppet/src/contentscript.js @@ -245,7 +245,7 @@ class MautrixController { // but rooms do not...ARGH! But they both use a dedicated element for it. const participantNameElement = Array.from(participantsList.querySelectorAll(`.mdRGT13Ttl`)) - .find(e => e.innerText == "EN-MY translator") + .find(e => e.innerText == sender.name) if (participantNameElement) { imgElement = participantNameElement.previousElementSibling.firstElementChild sender.id = imgElement.parentElement.parentElement.getAttribute("data-mid")