25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Adapt to change of mix_annotate type to boolean in roster_query

This commit is contained in:
Linus Jahn 2022-09-15 23:25:31 +02:00
parent eeed1ca87f
commit 14882342be

View File

@ -273,10 +273,9 @@ write_roster_version(LUser, LServer, InTransaction) ->
%% - the roster version from client don't match current version. %% - the roster version from client don't match current version.
-spec process_iq_get(iq()) -> iq(). -spec process_iq_get(iq()) -> iq().
process_iq_get(#iq{to = To, from = From, 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, LUser = To#jid.luser,
LServer = To#jid.lserver, LServer = To#jid.lserver,
MixEnabled = MixAnnotate == #mix_roster_annotate{},
{ItemsToSend, VersionToSend} = {ItemsToSend, VersionToSend} =
case {mod_roster_opt:versioning(LServer), case {mod_roster_opt:versioning(LServer),
mod_roster_opt:store_current_id(LServer)} of mod_roster_opt:store_current_id(LServer)} of