fix: path fixing
This commit is contained in:
parent
6cc5ed144a
commit
9f0f41dd00
@ -2,7 +2,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
window.addEventListener('newMessage', event => {
|
||||
let jid = event.detail.jid;
|
||||
Array.from(document.querySelectorAll('[data-jabberID="' + jid + '"]')).forEach(el => {
|
||||
el.parentElement.parentElement.classList.add('unread');
|
||||
el.parentElement.parentElement.parentElement.classList.add('unread');
|
||||
});
|
||||
});
|
||||
|
||||
@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
const badge = document.querySelector(`solid-badge[data-src="${event.detail.resource['@id']}"]`);
|
||||
if (badge) {
|
||||
badge.parentElement.parentElement.parentElement.classList.remove('unread');
|
||||
const project = badge.parentElement.parentElement.querySelector('.unread');
|
||||
const project = badge.parentElement.parentElement.parentElement.querySelector('.unread');
|
||||
if (project) project.classList.remove('unread');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user