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)),
|
jid:tolower(Peer)),
|
||||||
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
|
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
|
||||||
SType = misc:atom_to_binary(Type),
|
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
|
XML = case mod_mam_opt:compress_xml(LServer) of
|
||||||
true ->
|
true ->
|
||||||
J1 = case Type of
|
J1 = case Type of
|
||||||
|
|
Loading…
Reference in New Issue