Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to disable chat from aspnetzero #8290


User avatar
1
kansoftware created

Hi,

Just wanted to know how to disable it from entire application.

regards, Harshit


9 Answer(s)
  • User Avatar
    1
    amitchaudhary created

    AspNetZero - I also need the answer to it.

  • User Avatar
    1
    tinytownsoftware created

    I had to do the same. There is no easy way to do it, you must edit a number of files. Working from memory, but here goes:

    1. Remove the chat icon from the top bar.
    2. Remove signalr from Startup.cs
    3. Remove signalr and chat javascript files so that your js does not try to make a signalr request.
    4. Remove any other .cs files that mention chat. This one is optional.
  • User Avatar
    0
    maliming created
    Support Team

    see https://support.aspnetzero.com/QA/Questions/3713 https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Chat#chat-features

  • User Avatar
    0
    smry created

    @maliming - the first link you mentioned gives the direction: "you can remove it's codes from your project." Is there more information on how to remove chat all together other than "Just remove it"

    Is @tinytownsoftware's answer the easiest way to do that and is that the extent of the changes in order to remove Chat as a whole?

  • User Avatar
    0
    tinytownsoftware created

    It worked well for me. It's a bit more involved than changing permissions, but it actually removes signalr calls.

  • User Avatar
    0
    smry created

    Would that also inadvertently kill all page notifications, or is it only the chat-notifications that it gets rid of?

    There was a post that asked about SignalR (https://support.aspnetzero.com/QA/Questions/8300) So, it seems we'd lose 'Real-Time' notification and I wanted to make sure that I understood that 'Chat notifications' and 'Real-time notifications' were synonymous and there was nothing else using real time notifications

  • User Avatar
    0
    tinytownsoftware created

    Ah, yeah, that is probably the case. I disabled notifications too, so it works for me.

  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi @smry

    Ther eis no feature related to Notifications like Chat.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.