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
This commit is contained in:
William Casarin
2023-04-29 07:49:10 -07:00
parent 5c885b0fd4
commit 68ed3d7796

View File

@@ -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
}