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

Use xmpp:put_meta/3 to update metadata

This commit is contained in:
Holger Weiss 2016-11-24 10:47:26 +01:00
parent 3325e69ae6
commit 560038c808

View File

@ -613,8 +613,7 @@ route_message(From, To, Packet, Type) ->
maybe_mark_as_copy(Packet, R, R, P, P) ->
Packet;
maybe_mark_as_copy(Packet, _, _, P, P) ->
Meta = Packet#message.meta,
Packet#message{meta = Meta#{sm_copy => true}};
xmpp:put_meta(Packet, sm_copy, true);
maybe_mark_as_copy(Packet, _, _, _, _) ->
Packet.