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:
parent
3325e69ae6
commit
560038c808
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user