mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Adds thread notification fields to RoomSummary
This commit is contained in:
parent
c2ae75d9bd
commit
a2382c6a01
2 changed files with 10 additions and 0 deletions
|
@ -97,6 +97,14 @@ data class RoomSummary(
|
|||
* Number of unread and highlighted message in this room.
|
||||
*/
|
||||
val highlightCount: Int = 0,
|
||||
/**
|
||||
* Number of threads with unread messages in this room
|
||||
*/
|
||||
val threadNotificationCount: Int = 0,
|
||||
/**
|
||||
* Number of threads with highlighted messages in this room
|
||||
*/
|
||||
val threadHighlightCount: Int = 0,
|
||||
/**
|
||||
* True if this room has unread messages.
|
||||
*/
|
||||
|
|
|
@ -61,6 +61,8 @@ internal class RoomSummaryMapper @Inject constructor(
|
|||
otherMemberIds = roomSummaryEntity.otherMemberIds.toList(),
|
||||
highlightCount = roomSummaryEntity.highlightCount,
|
||||
notificationCount = roomSummaryEntity.notificationCount,
|
||||
threadHighlightCount = roomSummaryEntity.threadHighlightCount,
|
||||
threadNotificationCount = roomSummaryEntity.threadNotificationCount,
|
||||
hasUnreadMessages = roomSummaryEntity.hasUnreadMessages,
|
||||
tags = tags,
|
||||
typingUsers = typingUsers,
|
||||
|
|
Loading…
Add table
Reference in a new issue