update chat room

This commit is contained in:
2026-05-11 07:28:12 +07:00
parent a4bd1c2900
commit 6f7c7ccd63
2 changed files with 59 additions and 4 deletions

View File

@@ -23,7 +23,8 @@ data class Room(
val createdAt: Timestamp,
val subject: String?,
val members: Set<PublicKey>,
val kind: RoomKind = RoomKind.default()
val kind: RoomKind = RoomKind.default(),
val lastMessage: String? = null
) : Comparable<Room> {
override fun hashCode(): Int = id.hashCode()
@@ -55,7 +56,8 @@ data class Room(
id = id,
createdAt = createdAt,
subject = subject,
members = pubkeys as Set<PublicKey>
members = pubkeys as Set<PublicKey>,
lastMessage = rumor.content()
)
}
}