]> granicus.if.org Git - ejabberd/commit
Don't duplicate last published PEP items
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 18 Nov 2014 00:13:22 +0000 (01:13 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 18 Nov 2014 00:13:22 +0000 (01:13 +0100)
commit84c227e6aec21274427e0b230d33d38cecb53f0b
treee9a128f5048648ab3e543bec480ee2f6683967c6
parentab122708376d76ce08f8f7b902b48eb269110c66
Don't duplicate last published PEP items

When a contact becomes available, usually both the 'caps_update' hook
and the 'presence_probe_hook' are called.  For remote contacts, both
hooks triggered PEP notifications, so each item was sent twice.  Fix
this by ignoring the 'presence_probe_hook' for remote contacts.
src/mod_pubsub.erl
src/mod_pubsub_odbc.erl