-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Labels
enhancementNew feature or requestNew feature or request
Description
@Entity
class Session {
@Id
var id: Long = 0
lateinit var messages: ToMany<Message>
}
In my app, there is a session list, we need to listen to the first of messages, but now I can't find any direct method to listen.
My question: Is there any simple workaround to listen?
BTW, now I need to add a extra field latestContent to solve this problem. Just as below.
@Entity
class Session {
@Id
var id: Long = 0
//when update messages, update this field
lateinit var latestContent: String
lateinit var messages: ToMany<Message>
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request