Iterate on reactions (#668)
This commit is contained in:
parent
5e455eccb6
commit
43b7acc64e
8 changed files with 51 additions and 33 deletions
|
|
@ -78,7 +78,8 @@ private fun List<Reaction>?.map(): List<EventReaction> {
|
|||
return this?.map {
|
||||
EventReaction(
|
||||
key = it.key,
|
||||
count = it.count.toLong()
|
||||
count = it.count.toLong(),
|
||||
senderIds = it.senders.map { sender -> UserId(sender) }
|
||||
)
|
||||
} ?: emptyList()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue