commit 7e63766
default
·
2023-08-22 18:12:22 +0000 UTC
parent ab0ab30
Also propagate the 'conversation' field, if there is one.
1 files changed,
+4,
-0
+4,
-0
1@@ -1122,6 +1122,10 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
2 if ((v = xs_dict_get(p_msg, "context")))
3 ctxt = xs_dup(v);
4
5+ /* propagate the conversation field, if there is one */
6+ if ((v = xs_dict_get(p_msg, "conversation")))
7+ msg = xs_dict_append(msg, "conversation", v);
8+
9 /* if this message is public, ours will also be */
10 if (!priv && is_msg_public(p_msg) && xs_list_in(to, public_address) == -1)
11 to = xs_list_append(to, public_address);