25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Set from/to in activity marker messages

This commit is contained in:
Paweł Chmielowski 2019-05-02 13:19:54 +02:00
parent f7bc969729
commit cd2d62bffd

View File

@ -637,7 +637,7 @@ user_unset_presence(User, Server, _Resource, _Status) ->
store_last_activity_marker(User, Server, Timestamp) ->
Jid = jid:make(User, Server, <<>>),
Pkt = xmpp:put_meta(#message{id = <<"ActivityMarker">>, type = error},
Pkt = xmpp:put_meta(#message{id = <<"ActivityMarker">>, type = error, from = Jid, to = Jid},
activity_marker, true),
Msg = #offline_msg{us = {User, Server}, from = Jid, to = Jid,