Skip to content

Commit

Permalink
Avoid avatar and unread count affecting unbookmarked MUC names
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaRays committed Oct 25, 2024
1 parent 37dfc25 commit a09213e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/roomslist/templates/roomslist.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function tplRoomItem (el, room) {
<span>${ room.get('num_unread') ?
tplUnreadIndicator(room) :
(room.get('has_activity') ? tplActivityIndicator() : '') }
${room.getDisplayName()}</span>
<span class="room-name">${room.getDisplayName()}</span></span>
</a>
${ api.settings.get('allow_bookmarks') ? tplBookmark(room) : '' }
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/roomslist/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class RoomsList extends CustomElement {
async openRoom (ev) {
ev.preventDefault();
const target = u.ancestor(/** @type {HTMLElement} */(ev.target), '.open-room');
const name = target.textContent;
const name = target.querySelector(".room-name")?.textContent;
const jid = target.getAttribute('data-room-jid');
const data = {
'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
Expand Down

0 comments on commit a09213e

Please sign in to comment.