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

View File

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