Don't leak mentions in DMs

Changelog-Fixed: Don't leak mentions in DMs
This commit is contained in:
William Casarin
2023-04-10 09:31:26 -07:00
parent f500da03e8
commit 2aa8d527b9
2 changed files with 16 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ struct DMChatView: View {
func send_message() {
let tags = [["p", pubkey]]
let post_blocks = parse_post_blocks(content: dms.draft)
let post_tags = make_post_tags(post_blocks: post_blocks, tags: tags)
let post_tags = make_post_tags(post_blocks: post_blocks, tags: tags, silent_mentions: true)
let content = render_blocks(blocks: post_tags.blocks)
guard let dm = create_dm(content, to_pk: pubkey, tags: post_tags.tags, keypair: damus_state.keypair) else {