mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix roster versioning support when Riak backend is enabled
This commit is contained in:
parent
538d4ffbd0
commit
6a73b96459
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user