Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-09-16 00:25:31 +0300
committerLinus Jahn <lnj@kaidan.im>2022-09-16 13:29:51 +0300
commit14882342befd4a3f66edc868922b7badaf9e16ed (patch)
tree136dcbcf6b1940dfb0d1bf1db2d7c6a5d5947846
parenteeed1ca87fef84524032331c59a7a7b33c49ea8c (diff)
Adapt to change of mix_annotate type to boolean in roster_query
-rw-r--r--src/mod_roster.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl
index fdf9de9f4..b6cf771f0 100644
--- a/src/mod_roster.erl
+++ b/src/mod_roster.erl
@@ -273,10 +273,9 @@ write_roster_version(LUser, LServer, InTransaction) ->
%% - the roster version from client don't match current version.
-spec process_iq_get(iq()) -> iq().
process_iq_get(#iq{to = To, from = From,
- sub_els = [#roster_query{ver = RequestedVersion, mix_annotate = MixAnnotate}]} = IQ) ->
+ sub_els = [#roster_query{ver = RequestedVersion, mix_annotate = MixEnabled}]} = IQ) ->
LUser = To#jid.luser,
LServer = To#jid.lserver,
- MixEnabled = MixAnnotate == #mix_roster_annotate{},
{ItemsToSend, VersionToSend} =
case {mod_roster_opt:versioning(LServer),
mod_roster_opt:store_current_id(LServer)} of