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
1 changed files with 1 additions and 1 deletions

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,