You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 57e257f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: feature/directmessages/src/androidTest/kotlin/com/interlinedlist/android/feature/directmessages/ui/InboxScreenTest.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/DefaultDirectMessagesRepository.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/DirectMessagesRepository.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/DmMappers.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/local/ConversationDao.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/local/ConversationEntity.kt
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,23 @@ import androidx.room.Entity
4
4
importandroidx.room.PrimaryKey
5
5
6
6
/**
7
-
* A per-conversation summary backing the inbox list. Keyed by the other
8
-
* participant's username so it aligns with the thread endpoints.
7
+
* A conversation row from `GET /api/dm/conversations`, cached as the inbox's
8
+
* source of truth. Distinct from [DirectMessageEntity]: this is the server's
9
+
* per-conversation summary, not a message.
10
+
*
11
+
* Keyed by the other participant's username because every thread-scoped
12
+
* operation in this module (thread fetch, polling, navigation) is addressed by
13
+
* username; [pairKey] keeps the server's own grouping anchor alongside it.
9
14
*/
10
15
@Entity(tableName ="dm_conversation")
11
16
data classConversationEntity(
12
17
@PrimaryKey valusername:String,
18
+
valpairKey:String?,
13
19
valdisplayName:String?,
14
20
valavatarUrl:String?,
15
21
vallastMessageId:String,
16
22
vallastMessageBody:String,
17
23
vallastMessageAtMillis:Long,
18
-
/** Whether the latest received message in this conversation is unread. */
19
-
valhasUnread:Boolean,
24
+
/** Unread received messages in this conversation, as reported by the server. */
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/local/DirectMessagesDatabase.kt
Copy file name to clipboardExpand all lines: feature/directmessages/src/main/kotlin/com/interlinedlist/android/feature/directmessages/data/remote/DirectMessagesApi.kt
0 commit comments