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
1 changed files with 1 additions and 1 deletions

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.