Show sent DMs immediately

Now that we have a postbox abstraction, we can show DMs immediately. We
probably need an indicator on if it was delivered or not.

Changelog-Fixed: Show sent DMs immediately
This commit is contained in:
William Casarin
2023-03-31 15:25:19 -07:00
parent 4ac3e71039
commit 2815827b9f

View File

@@ -131,6 +131,8 @@ struct DMChatView: View {
dms.draft = ""
damus_state.postbox.send(dm)
handle_incoming_dm(ev: dm, our_pubkey: damus_state.pubkey, dms: damus_state.dms, prev_events: NewEventsBits())
end_editing()
}