Private
Public Access
1
0

Implements signals

This commit is contained in:
2025-08-24 18:41:42 -07:00
parent 3ee94a3bea
commit b38df68eb2
6 changed files with 191 additions and 22 deletions

View File

@@ -37,7 +37,7 @@ enum Display
}
}
struct Message: Identifiable
struct Message: Identifiable, Hashable
{
let id: String
let sender: Sender
@@ -63,6 +63,14 @@ enum Display
self.sender = sender
self.text = text
}
static func == (lhs: Message, rhs: Message) -> Bool {
lhs.id == rhs.id
}
func hash(into hasher: inout Hasher) {
hasher.combine(id)
}
enum Sender
{