Adds thread notification fields to RoomSummary

This commit is contained in:
ericdecanini 2022-10-07 11:47:18 -04:00
parent c2ae75d9bd
commit a2382c6a01
2 changed files with 10 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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,