Discussion history in MUC

Hi all, currently we are using ejabberd 17.04 and we are facing an issue related to discussion history in multi user chat section. As soon as we join a room(along with a past date to retrive history) we are only getting those messages that are sent by other members of the room we are unable to receive our own message. We are wondering weather this is an issue in our server configuration or in ejabberd or it might be a feature?

Please let us know how to fetch our own messages in discussion history.
Thanks.

I don't see that problem.

I don't see that problem. user1 creates a room, user2 joins, and each one sends a pair of messages. Later user2 leaves the room. Finally user2 sends a presence stanza to join, and receives the four messages:

Try with default mod_muc configuration, and default room options. Or show here your mod_muc config.

<presence id='77:762051'
xml:lang='es'
to='room1@conference.localhost/user2'>
  <x xmlns='http://jabber.org/protocol/muc'>
    <password/>
    <history  since='1970-01-01T00:00:00Z' />
  </x>
  <show>dnd</show>
</presence>

<message xml:lang='es'
to='user2@localhost/tka1'
from='room1@conference.localhost/user1'
type='groupchat'
id='34:482948'>
  <delay from='room1@conference.localhost'
stamp='2017-05-12T09:30:30.173075Z'
xmlns='urn:xmpp:delay'/>
  <body>men1</body>
</message>

<message xml:lang='es'
to='user2@localhost/tka1'
from='room1@conference.localhost/user2'
type='groupchat'
id='43:105268'>
  <delay from='room1@conference.localhost'
stamp='2017-05-12T09:30:48.715166Z'
xmlns='urn:xmpp:delay'/>
  <body>men2</body>
</message>

<message xml:lang='es'
to='user2@localhost/tka1'
from='room1@conference.localhost/user1'
type='groupchat'
id='35:517079'>
  <delay from='room1@conference.localhost'
stamp='2017-05-12T09:30:52.324299Z'
xmlns='urn:xmpp:delay'/>
  <body>men3</body>
</message>

<message xml:lang='es'
to='user2@localhost/tka1'
from='room1@conference.localhost/user2'
type='groupchat'
id='44:243427'>
  <delay from='room1@conference.localhost'
stamp='2017-05-12T09:30:55.606021Z'
xmlns='urn:xmpp:delay'/>
  <body>men4</body>
</message>

Below is our current server

Below is our current server config:

mod_muc:
    host: "chat.@HOST@"
    db_type: sql
    max_user_conferences: 200
    access_create: muc_create
    access_persistent: muc_create
    history_size: 20
    access:
      - allow
    ## access_create:
    ##  - allow: local
    ## access_persistent:
    ##   - allow: local
    access_admin:
      - allow: admin
    default_room_options:
      public: true
      persistent: true
      members_by_default: true
      allow_change_subj: true
      moderated: false
      mam: true

I've tried with your

I've tried with your configuration, with just a minimal change: I still use db_type mnesia, but this shouldn't affect as the room recent history is stored in RAM anyway, not in database. The feature works correctly with a newly created room... I didn't see your problem.

Your config looks acceptable, nothing wrong apparently.

Have you tried this with a typical desktop XMPP client, like Psi or Gajim?

Also, those clients allow you to view the XMPP traffic realtime (called XML console or similar). Check there if the missing messages are sent or not.

Syndicate content