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

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.