From 68ed3d7796d954633fe693f27bb2533e89876d48 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 29 Apr 2023 07:49:10 -0700 Subject: [PATCH] Fix nip10 thread incompatibility for clients that add more than one reply tag Changelog-Fixed: Fix thread incompatibility for clients that add more than one reply tag --- damus/Util/EventCache.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift index fba04e84..2a2a0789 100644 --- a/damus/Util/EventCache.swift +++ b/damus/Util/EventCache.swift @@ -123,7 +123,7 @@ class EventCache { var ev = event while true { - guard let direct_reply = ev.direct_replies(nil).first else { + guard let direct_reply = ev.direct_replies(nil).last else { break }