ndb: implement eventref building from ndb notes

This commit is contained in:
William Casarin
2023-07-24 10:55:34 -07:00
parent c8e236b6d5
commit 1e9e4a7f3a
8 changed files with 209 additions and 31 deletions

View File

@@ -7,7 +7,7 @@
import Foundation
enum EventRef {
enum EventRef: Equatable {
case mention(Mention)
case thread_id(ReferencedId)
case reply(ReferencedId)

View File

@@ -158,7 +158,7 @@ func render_blocks(blocks: [Block]) -> String {
}
}
struct Blocks {
struct Blocks: Equatable {
let words: Int
let blocks: [Block]
}