Unable to chat

Solved Technical Support
  • I have a new install of NodeBB with 14 active plugins and a custom theme. Chat privileges are enabled for all groups, however the 'Start new chat...' option under the account profile menu never shows up. I can force it to be displayed by removing the check in the template li class="<!-- IF !hasPrivateChat -->hidden<!-- ENDIF !hasPrivateChat -->"> however that will take away the ability of the users to restrict chat to only those they follow. Once a chat has been initiated, the 'Resume chat with...' option does show up in the profile menu.

    Any suggestions on where to look for the disconnect? I've already tried disabling all plugins and using a built-in theme, but no difference.

  • There is no built in way to reset privileges to defaults.

    I checked the template and the start new chat should always be visible.

    <!-- IF !config.disableChat -->
    	<li class="<!-- IF !hasPrivateChat -->hidden<!-- ENDIF !hasPrivateChat -->">
    		<a component="account/chat" href="#">[[user:chat_with, {username}]]</a>
    	</li>
    	<li>
    		<a component="account/new-chat" href="#">[[user:new_chat_with, {username}]]</a>
    	</li>
    <!-- ENDIF !config.disableChat -->
    

    The second link is the "Start New Chat" option and it doesn't have a conditional hidden. The first one is theContinue Chat button and it is only visible when you already have a private chat with someone.

  • When you are on someone else's profile that you haven't chatted before, what does the value of ajaxify.data.hasPrivateChat show in the browser console? That should be false if things are working correctly.

  • @baris ajaxify.data.hasPrivateChat returns 0

  • Yep that's the same as this forum and we see "Start new chat" I would revert to the default theme temporarily to see if it works. Maybe something is wrong with your theme.

  • @baris I tried the default theme and that didn't fix the issue. I was able to see the menu option when I installed on a new DB with the same theme and plugins installed. Is there an easy way to reset the settings? I tried nodebb reset -s but that didn't seem to reset the privileges to defaults.

  • There is no built in way to reset privileges to defaults.

    I checked the template and the start new chat should always be visible.

    <!-- IF !config.disableChat -->
    	<li class="<!-- IF !hasPrivateChat -->hidden<!-- ENDIF !hasPrivateChat -->">
    		<a component="account/chat" href="#">[[user:chat_with, {username}]]</a>
    	</li>
    	<li>
    		<a component="account/new-chat" href="#">[[user:new_chat_with, {username}]]</a>
    	</li>
    <!-- ENDIF !config.disableChat -->
    

    The second link is the "Start New Chat" option and it doesn't have a conditional hidden. The first one is theContinue Chat button and it is only visible when you already have a private chat with someone.

  • @baris said in Unable to chat:

    account/new-chat

    Thanks! that was it, I had some custom css that hid the 2nd item in the dropdown menu. That also explains why it worked with the new DB since the custom css was no longer there.

  • R razibal has marked this topic as solved on

Suggested Topics