Skip to content

Commit edbf858

Browse files
committed
Fixed test plus PR feedback
1 parent 1ebe7f5 commit edbf858

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationViewModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ import java.time.ZoneId
9090
import java.util.UUID
9191

9292

93+
// the amount of character left at which point we should show an indicator
94+
private const val CHARACTER_LIMIT_THRESHOLD = 200
95+
9396
class ConversationViewModel(
9497
val threadId: Long,
9598
val edKeyPair: KeyPair?,
@@ -146,9 +149,6 @@ class ConversationViewModel(
146149
))
147150
val appBarData: StateFlow<ConversationAppBarData> = _appBarData
148151

149-
// the amount of character left at which point we should show an indicator
150-
private val CHARACTER_LIMIT_THRESHOLD = 200
151-
152152
private var _recipient: RetrieveOnce<Recipient> = RetrieveOnce {
153153
val conversation = repository.maybeGetRecipientForThreadId(threadId)
154154

app/src/test/java/org/thoughtcrime/securesms/conversation/v2/ConversationViewModelTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class ConversationViewModelTest: BaseViewModelTest() {
9393
dateUtils = mock(),
9494
openGroupManager = mock {
9595
on { getCommunitiesWriteAccessFlow() } doReturn MutableStateFlow(emptyMap())
96-
}
96+
},
97+
proStatusManager = mock()
9798
)
9899
}
99100

0 commit comments

Comments
 (0)