Always flush events when switching timelines

This commit is contained in:
William Casarin
2023-02-20 14:21:21 -08:00
parent 587819c8eb
commit 54dd2035a1
2 changed files with 10 additions and 2 deletions

View File

@@ -79,6 +79,10 @@ class EventHolder: ObservableObject {
}
func flush() {
guard !incoming.isEmpty else {
return
}
var changed = false
for event in incoming {
if insert_uniq_sorted_event_created(events: &events, new_ev: event) {