mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
First delete messages, and then get the remaining messages
This commit is contained in:
parent
191187a279
commit
b684e90292
@ -597,12 +597,12 @@ user_queue(User, Server, Query, Lang) ->
|
|||||||
exmpp_stringprep:nodeprep(list_to_binary(User)),
|
exmpp_stringprep:nodeprep(list_to_binary(User)),
|
||||||
exmpp_stringprep:nameprep(list_to_binary(Server))
|
exmpp_stringprep:nameprep(list_to_binary(Server))
|
||||||
},
|
},
|
||||||
{US, MsgsAll, Res} = try
|
{US, Res, MsgsAll} = try
|
||||||
{
|
{
|
||||||
US0,
|
US0,
|
||||||
lists:keysort(#offline_msg.timestamp,
|
user_queue_parse_query(US0, Query),
|
||||||
gen_storage:dirty_read(Server, {offline_msg, US0})),
|
lists:keysort(#offline_msg.timestamp,
|
||||||
user_queue_parse_query(US0, Query)
|
gen_storage:dirty_read(Server, {offline_msg, US0}))
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user