mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix get_roster issue injected by fbfbb96
This commit is contained in:
parent
24ef90c556
commit
9ab169bc63
@ -51,7 +51,7 @@ write_roster_version(LUser, LServer, InTransaction, Ver) ->
|
||||
end.
|
||||
|
||||
get_roster(LUser, LServer) ->
|
||||
{ok, mnesia:dirty_index_read(roster, {LUser, LServer}, #roster.us)}.
|
||||
mnesia:dirty_index_read(roster, {LUser, LServer}, #roster.us).
|
||||
|
||||
get_roster_by_jid(LUser, LServer, LJID) ->
|
||||
case mnesia:read({roster, {LUser, LServer, LJID}}) of
|
||||
|
@ -41,8 +41,8 @@ write_roster_version(LUser, LServer, _InTransaction, Ver) ->
|
||||
get_roster(LUser, LServer) ->
|
||||
case ejabberd_riak:get_by_index(roster, roster_schema(),
|
||||
<<"us">>, {LUser, LServer}) of
|
||||
{ok, Items} -> {ok, Items};
|
||||
_Err -> error
|
||||
{ok, Items} -> Items;
|
||||
_Err -> []
|
||||
end.
|
||||
|
||||
get_roster_by_jid(LUser, LServer, LJID) ->
|
||||
|
Loading…
Reference in New Issue
Block a user