Skip to content

Commit

Permalink
fix(chat): disable chat message ui when user permissions are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Aug 28, 2024
1 parent 5c85f87 commit 4e9e801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/systems/ui/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ AFRAME.registerSystem('arena-chat-ui', {
this.chatDot.innerText = '...';
this.chatBtn.appendChild(this.chatDot);

// TODO (mwfarb): make more granular by rendering when incoming message arrives
// use token permissions to render message ui
this.chatBtn.style.display = this.arena.isUsersPermitted() ? 'block' : 'none';

this.usersBtn = document.createElement('div');
this.usersBtn.className = 'arena-button users-button';
this.usersBtn.setAttribute('title', 'User List');
Expand Down

0 comments on commit 4e9e801

Please sign in to comment.