mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
sql_type should be taken for LServer, not LHost (#3202)
sql_type option should be retrieved for the main domain, not the MUC subdomain
This commit is contained in:
parent
5ec214386e
commit
87dda1b638
@ -105,7 +105,7 @@ store(Pkt, LServer, {LUser, LHost}, Type, Peer, Nick, _Dir, TS) ->
|
||||
jid:tolower(Peer)),
|
||||
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
|
||||
SType = misc:atom_to_binary(Type),
|
||||
SqlType = ejabberd_option:sql_type(LHost),
|
||||
SqlType = ejabberd_option:sql_type(LServer),
|
||||
XML = case mod_mam_opt:compress_xml(LServer) of
|
||||
true ->
|
||||
J1 = case Type of
|
||||
|
Loading…
Reference in New Issue
Block a user