damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 61c9732acdca106c898ba9b1a5515f83db5ad0d2
parent ee6c080af8ab504f9862a5d278e89bcae6309bec
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  2 May 2023 06:44:57 -0700

Fix crash when loading DMs in the background

Changelog-Fixed: Fix crash when loading DMs in the background

Diffstat:
Mdamus/Models/HomeModel.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -951,7 +951,7 @@ func handle_incoming_dms(prev_events: NewEventsBits, dms: DirectMessagesModel, o if inserted { Task.init { - let new_dms = dms.dms.filter({ $0.events.count > 0 }).sorted { a, b in + let new_dms = Array(dms.dms.filter({ $0.events.count > 0 })).sorted { a, b in return a.events.last!.created_at > b.events.last!.created_at } DispatchQueue.main.async {