Skip to content

Commit d560d69

Browse files
committed
resolve detekt warnings...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
1 parent 7dcb35d commit d560d69

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/com/nextcloud/talk/contextchat/ContextChatViewModel.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ContextChatViewModel @Inject constructor(private val chatNetworkDataSource
3636
MutableStateFlow<ContextChatRetrieveUiState>(ContextChatRetrieveUiState.None)
3737
val getContextChatMessagesState: StateFlow<ContextChatRetrieveUiState> = _getContextChatMessagesState
3838

39+
@Suppress("LongParameterList")
3940
fun getContextForChatMessages(
4041
credentials: String,
4142
baseUrl: String,
@@ -44,8 +45,6 @@ class ContextChatViewModel @Inject constructor(private val chatNetworkDataSource
4445
messageId: String,
4546
title: String
4647
) {
47-
var finalTitle: String? = title
48-
4948
viewModelScope.launch {
5049
val user = userManager.currentUser.blockingGet()
5150

@@ -78,7 +77,7 @@ class ContextChatViewModel @Inject constructor(private val chatNetworkDataSource
7877
messageId = messageId,
7978
threadId = threadId,
8079
messages = messages,
81-
title = finalTitle,
80+
title = title,
8281
subTitle = subTitle
8382
)
8483
}

app/src/main/java/com/nextcloud/talk/ui/ComposeChatAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ class ComposeChatAdapter(
10461046

10471047
@Preview(showBackground = true, widthDp = 380, heightDp = 800)
10481048
@Composable
1049+
@Suppress("MagicNumber", "LongMethod")
10491050
fun AllMessageTypesPreview() {
10501051
val previewUtils = ComposePreviewUtils.getInstance(LocalContext.current)
10511052
val adapter = remember {

0 commit comments

Comments
 (0)