Skip to content

Commit

Permalink
fix: don't create user list on onstream chat
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Jul 2, 2024
1 parent 19d966e commit 3bf5c14
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,16 @@ class Chat {
this,
),
);
this.menus.set(
'users',
new ChatUserMenu(
this.ui.find('#chat-user-list'),
this.ui.find('#chat-users-btn'),
this,
),
);
if (this.ui.find('#chat-user-list').length > 0) {
this.menus.set(
'users',
new ChatUserMenu(
this.ui.find('#chat-user-list'),
this.ui.find('#chat-users-btn'),
this,
),
);
}
this.menus.set(
'whisper-users',
new ChatWhisperUsers(
Expand Down

0 comments on commit 3bf5c14

Please sign in to comment.