diff --git a/plugins/chat/assets/javascripts/discourse/components/user-card-chat-button.hbs b/plugins/chat/assets/javascripts/discourse/components/user-card-chat-button.hbs index 764aa1ae8e6..2dd02ec8a75 100644 --- a/plugins/chat/assets/javascripts/discourse/components/user-card-chat-button.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/user-card-chat-button.hbs @@ -1,4 +1,4 @@ -{{#if this.chat.userCanDirectMessage}} +{{#if (and this.chat.userCanDirectMessage (not @user.suspended))}} `); + + assert.false( + exists(".user-card-chat-btn"), + "it doesn’t show the chat button" + ); + }); });