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:
parent
eeed1ca87f
commit
14882342be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user