24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

Fix roster versioning support when Riak backend is enabled

This commit is contained in:
Evgeniy Khramtsov 2014-07-09 18:39:39 +04:00
parent 538d4ffbd0
commit 6a73b96459

View File

@ -207,7 +207,7 @@ read_roster_version(LUser, LServer, odbc) ->
end;
read_roster_version(LServer, LUser, riak) ->
case ejabberd_riak:get(roster_version, {LUser, LServer}) of
{ok, Version} -> Version;
{ok, #roster_version{version = V}} -> V;
_Err -> error
end.