Wadera Flarum updates cannot change extension code. It looks like there were undocumented backend changes in the minor update but I can't be sure until I figure it out. Even the detailed log is not clear for me

I just realized that the problem is not in the backend, but in the frontend that sending the request. There is a POST request specifying the model id, but in this case we are creating a model, so we do not need to specify the id so the correct request should be POST /api/chatmessages instead POST api/chatmessages/0

1.1.3

  • Fix front-end API queries on Flarum 1.2 sylv38
  • Add minimize button in chat list in mobile view

Update

composer update xelson/flarum-ext-chat

Install for development builds:

composer require xelson/flarum-ext-chat:dev-master

Thank you so much for the update! I can confirm it's all working perfectly at this end, great extension. One thing - I'd like to customise the pink colour, could you tell me where the code for this is located please? I'd just like it to sit with my forum a little cleaner.

Many thanks.

    si_edgey You can use custom CSS on the admin panel for it (something like ice blue theme):

    .ChatHeader
    {
        background-color: #111 !important; /* chat header color */
    }
    
    .ChatList
    {
        background-color: #e1f4fd !important; /* chatlist background color */
    
        .header {
            background-color: #649aff !important; /* chatlist header color */
        }
    
        .panel-preview
        {
            &:hover:not(.active) {
                box-shadow: 0 0 0 3px #94ddff !important; /* primary hover color #94ddff*/
                @media @phone {
                    background-color: #94ddff !important;
                }
    
            }
    
            &.active {
    
                box-shadow: 0 0 0 3px #649aff !important; /* primary color #94ddff*/
            }
            .message .sender {
                    color: #94ddff !important;
            }
        }
        .panel-add {
            &:hover {
                box-shadow: 0 0 0 3px #94ddff !important;
            }
        }
    }

    1.1.4

    • New minimized view: circle button with unreaded messages indicator
    • Fix chat overlaping by the side pane on mobile #27

    I hurried with the release of the update. I shouldn't have displayed the chat on top of modal windows and sidebars. This violates their principles of focusing attention when making decisions by the user. In the next update, the chat will overlap with these windows as before.

    @Xelson would it be possible to make the design a bit simpler? a chat icon on the page which opens with a click? not all users use the chat and a continuous bar interferes with the use of the actual discussions. Would be great if you could think about it, then I would also activate the chat again. itself it is a very great plugin. thank you for your effort and work

      Xelson thanks for the quick support!

      @Xelson Thank you for this great extension! Works very fine!

      Feature request:

      • Scrollbar in panel to find all messages without having to search for them.
      • Disable notifications for individual channels / chats. So it does not spam notifications by public channels.

      Is there a way to adjust the width of the chat?

        tom23 I tried but doesn't work. I tried putting it On, also Off the toggle but no vail

        Edit: I finally fixed the issue but it took a while. The minimize not taking effect seem was coming from settings table inside the database sql even though was correctly updated.

        Braden The first visit to the forum is determined when there is no specific record in local storage. In order to check this, you need to clear local storage and enter the forum again

        Yolo use a custom CSS:

        .NeonChatFrame .frame #chat-panel
        {
           width: 400px !important /* 650px is default */
        }
        • Yolo replied to this.

          Xelson Unfortunately, the CSS code does not work for us. Of course we cleared the cache. I also disabled and re-enabled the plugin.

            Is it intended that the first message is shown when the chat is opened? Wouldn't it make more sense to jump to the last unread or to the end? Currently you have to scroll down manually in the respective chat.

            The CSS doesn't work for me either. Also think the width could be smaller. Possibly with percent depending on the resolution? I would think 300 would be enough.

            Is it possible to change the color / icon and the start page "Welcome to..."? But these are all small things! Thank you for your work!