ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

PEP issue

Open murugaprabum opened this issue 11 years ago • 2 comments

PROBLEM

I use PEP to broadcast profile picture and status updates to all contacts in a user's roster. Assume the user Alice publishes an event. All contacts in Alice's roster who are online receives the event immediately. The contacts in Alice's roster who are offline receive the event once they come online.

The problem is that the published item of Alice is being broadcasted when ever a contact in Alice's roster comes online.

Is it possible to stop delivering the same event to a contact if it has been already delivered ?

EJABBERD CONFIGURATION

The ejabberd version is 15.04

mod_pubsub:
    access_createnode: pubsub_createnode
    ## reduces resource comsumption, but XEP incompliant
    ##ignore_pep_from_offline: true
    ## XEP compliant, but increases resource comsumption
    ignore_pep_from_offline: false
    last_item_cache: false
    plugins:
      - "flat"
      - "hometree"
      - "pep" # pep requires mod_caps

murugaprabum avatar Jun 25 '15 10:06 murugaprabum

Is it possible to stop delivering the same event to a contact if it has been already delivered ?

No.

If you are concerned about the traffic involved in re-transmitting pictures, you might want to look into XEP-0084, which solves the issue with a separate metadata node.

If you have further questions, I would suggest continuing this discussion on the mailing list.

weiss avatar Jun 25 '15 10:06 weiss

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 12 '19 09:06 lock[bot]