From 5c69122bbe6573a264b2ae720dd314e0d2e6edf4 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Mon, 1 Apr 2019 10:47:29 +0300 Subject: [PATCH] Use xmpp:get_subtags/2 --- rebar.config | 2 +- src/misc.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index c654f41e9..6a87dbc28 100644 --- a/rebar.config +++ b/rebar.config @@ -24,7 +24,7 @@ {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.1.0"}}}, {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.15"}}}, {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.35"}}}, - {xmpp, ".*", {git, "https://github.com/processone/xmpp", "472ed4e5ce5c3a9fff0778c7844c287356babc20"}}, + {xmpp, ".*", {git, "https://github.com/processone/xmpp", "f3e953e8"}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.18"}}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}, {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.4"}}}, diff --git a/src/misc.erl b/src/misc.erl index 1b7fc22c1..891269cc1 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -59,7 +59,7 @@ add_delay_info(Stz, From, Time) -> -spec add_delay_info(stanza(), jid(), erlang:timestamp(), binary()) -> stanza(). add_delay_info(Stz, From, Time, Desc) -> - Delays = xmpp:get_all_subtags(Stz, #delay{stamp = {0,0,0}}), + Delays = xmpp:get_subtags(Stz, #delay{stamp = {0,0,0}}), Matching = lists:any( fun(#delay{from = OldFrom}) when is_record(OldFrom, jid) -> jid:tolower(From) == jid:tolower(OldFrom); -- 2.40.0