This commit is contained in:
retoor 2025-09-07 02:42:47 +02:00
parent b9b31a494a
commit b4c267d584

View File

@ -256,7 +256,9 @@ class MessageList extends HTMLElement {
this.querySelectorAll('.avatar').forEach((el) => { this.querySelectorAll('.avatar').forEach((el) => {
const anchor = el.closest('a'); const anchor = el.closest('a');
if (anchor && typeof anchor.href === 'string' && anchor.href.includes(uid)) { if (anchor && typeof anchor.href === 'string' && anchor.href.includes(uid)) {
lastElement = el; if(!lastElement)
lastElement = el;
} }
}); });
if (lastElement) { if (lastElement) {