25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

mod_roster: Don't set version to "not_found"

Don't include a "ver" attribute with roster pushes if no roster version
is available.
This commit is contained in:
Holger Weiss 2018-12-10 21:38:14 +01:00
parent 446ff9257c
commit 1c1694c6bf

View File

@ -231,7 +231,7 @@ roster_version(LServer, LUser) ->
case roster_version_on_db(LServer) of case roster_version_on_db(LServer) of
true -> true ->
case read_roster_version(LUser, LServer) of case read_roster_version(LUser, LServer) of
error -> <<"not_found">>; error -> undefined;
{ok, V} -> V {ok, V} -> V
end; end;
false -> false ->