Skip to content

FetchMessages not being fired in singleRoom mode after opening #155

@PhantomYdn

Description

@PhantomYdn

Describe the bug

If chat window configured in a single room mode without any messages in a room yet: it shows infinite loading.

Per Vue debugger panel: fetch-messages not being fired. According to source code, problem seems to be exactly in this line:
https://github.com/antoine92190/vue-advanced-chat/blob/master/src/ChatWindow/Room/Room.vue#L51

So if there is no messages: fetch-messages will not be fired to load "more" messages.

Expected behavior

Expected that "fetch-messages" will be always fired which will allow custom code to load messages to a room.

Screenshots

image

Device (please complete the following information)

  • OS: Win10
  • Browser: Chrome 82
  • Package version: 0.8.3

Additional Context

fetch-messages handler defined through code: not through attribute. But it seems it should not be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions