mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
mod_mam: Fix "assume_mam_usage: if_enabled"
This commit is contained in:
parent
34cf693231
commit
26bce5dee3
@ -316,7 +316,12 @@ message_is_archived(false, C2SState, Peer,
|
|||||||
(never) -> never
|
(never) -> never
|
||||||
end, never) of
|
end, never) of
|
||||||
if_enabled ->
|
if_enabled ->
|
||||||
get_prefs(LUser, LServer);
|
case get_prefs(LUser, LServer) of
|
||||||
|
#archive_prefs{} = P ->
|
||||||
|
{ok, P};
|
||||||
|
error ->
|
||||||
|
error
|
||||||
|
end;
|
||||||
on_request ->
|
on_request ->
|
||||||
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
||||||
cache_tab:lookup(archive_prefs, {LUser, LServer},
|
cache_tab:lookup(archive_prefs, {LUser, LServer},
|
||||||
|
Loading…
Reference in New Issue
Block a user