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")