summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2021-01-25 20:00:07 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2021-01-25 20:00:07 +0100
commitbb87b6f948ff727cb317966aeb8f1a836ad9d398 (patch)
tree41e7332c0754a8d4209bd61a97116885696ee322 /src
parentSkip reading pep nodes that we know won't be requested due to caps (diff)
Rename function arguments
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index ced0f84a..f08e51db 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -550,10 +550,10 @@ disco_items(Host, Node, From) ->
%%
-spec caps_add(jid(), jid(), [binary()]) -> ok.
-caps_add(JID, JID, _Features) ->
+caps_add(JID, JID, Features) ->
%% Send the owner his last PEP items.
- send_last_pep(JID, JID, _Features);
-caps_add(#jid{lserver = S1} = From, #jid{lserver = S2} = To, _Features)
+ send_last_pep(JID, JID, Features);
+caps_add(#jid{lserver = S1} = From, #jid{lserver = S2} = To, Features)
when S1 =/= S2 ->
%% When a remote contact goes online while the local user is offline, the
%% remote contact won't receive last items from the local user even if
@@ -564,13 +564,13 @@ caps_add(#jid{lserver = S1} = From, #jid{lserver = S2} = To, _Features)
%% contact becomes available; the former is also executed when the local
%% user goes online (because that triggers the contact to send a presence
%% packet with CAPS).
- send_last_pep(To, From, _Features);
+ send_last_pep(To, From, Features);
caps_add(_From, _To, _Features) ->
ok.
-spec caps_update(jid(), jid(), [binary()]) -> ok.
-caps_update(From, To, _Features) ->
- send_last_pep(To, From, _Features).
+caps_update(From, To, Features) ->
+ send_last_pep(To, From, Features).
-spec presence_probe(jid(), jid(), pid()) -> ok.
presence_probe(#jid{luser = U, lserver = S}, #jid{luser = U, lserver = S}, _Pid) ->