mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix problem with handling of old db entries in mod_mam
This commit is contained in:
parent
07baf2d973
commit
be4d687a86
@ -712,9 +712,10 @@ select(LServer, #jid{luser = LUser} = JidRequestor,
|
|||||||
#xmlel{} = El = xml_stream:parse_element(XML),
|
#xmlel{} = El = xml_stream:parse_element(XML),
|
||||||
Now = usec_to_now(jlib:binary_to_integer(TS)),
|
Now = usec_to_now(jlib:binary_to_integer(TS)),
|
||||||
PeerJid = jid:tolower(jid:from_string(PeerBin)),
|
PeerJid = jid:tolower(jid:from_string(PeerBin)),
|
||||||
T = if Kind /= <<"">> ->
|
T = case Kind of
|
||||||
jlib:binary_to_atom(Kind);
|
<<"">> -> chat;
|
||||||
true -> chat
|
null -> chat;
|
||||||
|
_ -> jlib:binary_to_atom(Kind)
|
||||||
end,
|
end,
|
||||||
{TS, jlib:binary_to_integer(TS),
|
{TS, jlib:binary_to_integer(TS),
|
||||||
msg_to_el(#archive_msg{timestamp = Now,
|
msg_to_el(#archive_msg{timestamp = Now,
|
||||||
|
Loading…
Reference in New Issue
Block a user