home: debounce last notified
Calling UserDefaults fast in a loop is not good
This commit is contained in:
1 parent
2b99f94d13
commit
a9b4cfd424
3 files changed
+32
-24
No files matched your search
@@ -141,7 +141,7 @@ struct DMChatView: View, KeyboardReadable {
|
||||
|
||||
damus_state.postbox.send(dm)
|
||||
|
||||
handle_incoming_dm(ev: dm, our_pubkey: damus_state.pubkey, dms: damus_state.dms, prev_events: NewEventsBits())
|
||||
handle_incoming_dm(debouncer: nil, ev: dm, our_pubkey: damus_state.pubkey, dms: damus_state.dms, prev_events: NewEventsBits())
|
||||
|
||||
end_editing()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user