File tree Expand file tree Collapse file tree
app/src/androidTest/java/com/nextcloud/talk/data/database/dao Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,13 +102,14 @@ class ChatMessagesDaoTest {
102102 // Having a conversation token, we can also get a conversation directly
103103 val conversation1GotByToken = conversationsDao.getConversationForUser(
104104 account1.id,
105- conversation1.token!!
105+ conversation1.token
106106 ).first()
107107
108108 assertEquals(conversation1, conversation1GotByToken)
109109
110110 // Lets insert some messages to the conversations
111111 chatMessagesDao.upsertChatMessagesAndDeleteTemp(
112+ conversation1.internalId,
112113 listOf (
113114 createChatMessageEntity(conversation1.internalId, " hello" ),
114115 createChatMessageEntity(conversation1.internalId, " here" ),
@@ -118,6 +119,7 @@ class ChatMessagesDaoTest {
118119 )
119120 )
120121 chatMessagesDao.upsertChatMessagesAndDeleteTemp(
122+ conversation2.internalId,
121123 listOf (
122124 createChatMessageEntity(conversation2.internalId, " first message in conversation 2" )
123125 )
You can’t perform that action at this time.
0 commit comments