Use real sender name ya dingus

This commit is contained in:
Andrew Ferrazzutti 2021-06-03 19:37:46 -04:00
parent 8613ad1256
commit b06e4532a1
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ class MautrixController {
// but rooms do not...ARGH! But they both use a dedicated element for it. // but rooms do not...ARGH! But they both use a dedicated element for it.
const participantNameElement = const participantNameElement =
Array.from(participantsList.querySelectorAll(`.mdRGT13Ttl`)) Array.from(participantsList.querySelectorAll(`.mdRGT13Ttl`))
.find(e => e.innerText == "EN-MY translator") .find(e => e.innerText == sender.name)
if (participantNameElement) { if (participantNameElement) {
imgElement = participantNameElement.previousElementSibling.firstElementChild imgElement = participantNameElement.previousElementSibling.firstElementChild
sender.id = imgElement.parentElement.parentElement.getAttribute("data-mid") sender.id = imgElement.parentElement.parentElement.getAttribute("data-mid")