commit 68ed3d7796d954633fe693f27bb2533e89876d48
parent 5c885b0fd423499801527756dabeeea1d144482e
Author: William Casarin <jb55@jb55.com>
Date: Sat, 29 Apr 2023 07:49:10 -0700
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
}