commit 2815827b9f29ecb6e78af0043ad663c397ef622e
parent 4ac3e710399a62435097ba5fbfa8226c667614d6
Author: William Casarin <jb55@jb55.com>
Date: Fri, 31 Mar 2023 15:25:19 -0700
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
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/damus/Views/DMChatView.swift b/damus/Views/DMChatView.swift
@@ -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()
}