Removed redundant code from previous PR

This commit is contained in:
jadenkiu 2023-04-23 15:57:33 -07:00
parent 42d63d99a8
commit 8c0b7441b7

View File

@ -158,7 +158,7 @@ function populate_discussions_list()
discussionButton.textContent = discussion.title;
discussionButton.title = "Open discussion";
//WIP, NOT DONE
//Indicates currently selected (Active) discussion
discussionButton.addEventListener('click', () => {
console.log(`Showing messages for discussion ${discussion.id}`);
load_discussion(discussion);
@ -175,11 +175,7 @@ function populate_discussions_list()
btnElList.forEach(btnEl => {
btnEl.addEventListener('click', () => {
console.log('Total: ' + btnElList.length + ' discussions');
btnEl.querySelector('activeDiscussion')?.classList.remove('activeDiscussion');
console.log('hm idk');
});
})