From 6c291365ca2c942899f1e79eb08ca0f32166cb74 Mon Sep 17 00:00:00 2001 From: Boris Safonov Date: Tue, 17 Dec 2024 22:00:57 +0200 Subject: [PATCH] Code style fix --- .../messages/ConversationMessagesViewModel.kt | 7 ++++--- kalium | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModel.kt b/app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModel.kt index f7d59bedb2..5377c40f8c 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModel.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModel.kt @@ -201,9 +201,10 @@ class ConversationMessagesViewModel @Inject constructor( } .distinctUntilChanged() .map { messageId -> - val senderNameResult = messageId?.let { getSenderNameByMessageId(conversationId, it) } - val senderName = if (senderNameResult is GetSenderNameByMessageIdUseCase.Result.Success) senderNameResult.name - else null + val senderName = messageId?.let { + val result = getSenderNameByMessageId(conversationId, it) + if (result is GetSenderNameByMessageIdUseCase.Result.Success) result.name else null + } messageId to senderName } diff --git a/kalium b/kalium index 9e38f7d841..b4b66eb70a 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit 9e38f7d84108797c36171b621eb716bc51bbe707 +Subproject commit b4b66eb70a59f7f1c8178d75498d14a2cc4a0db8