diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-15 23:25:31 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-16 12:29:51 +0200 |
| commit | 14882342befd4a3f66edc868922b7badaf9e16ed (patch) | |
| tree | 136dcbcf6b1940dfb0d1bf1db2d7c6a5d5947846 | |
| parent | Adapt to renaming of 'participant-id' from mix_roster_channel record (diff) | |
Adapt to change of mix_annotate type to boolean in roster_query
| -rw-r--r-- | src/mod_roster.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl index fdf9de9f..b6cf771f 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 |
