From 51330cbc7664ef5e98efb993151988a97bbb0491 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Thu, 14 Nov 2024 07:40:25 +0100 Subject: [PATCH] remove unused imports Signed-off-by: sowjanyakch --- .../conversationinfo/viewmodel/ConversationInfoViewModel.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt b/app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt index 4ba0d0160..3dcd8dd75 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt @@ -6,7 +6,6 @@ */ package com.nextcloud.talk.conversationinfo.viewmodel -import android.annotation.SuppressLint import android.util.Log import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.LifecycleOwner @@ -252,7 +251,7 @@ class ConversationInfoViewModel @Inject constructor( try{ val allowGuestsResult = conversationsRepository.allowGuests(token,allow) val statusCode: GenericMeta? = allowGuestsResult.ocs?.meta - val result = (statusCode?.statusCode == STATUS_CODE_OK) + val result = statusCode?.statusCode == STATUS_CODE_OK if (result) { _allowGuestsViewState.value = AllowGuestsUIState.Success(allow) } @@ -269,7 +268,7 @@ class ConversationInfoViewModel @Inject constructor( try{ val setPasswordResult = conversationsRepository.setPassword(password,token) val statusCode: GenericMeta? = setPasswordResult.ocs?.meta - val result = (statusCode?.statusCode == STATUS_CODE_OK) + val result = statusCode?.statusCode == STATUS_CODE_OK if(result){ _passwordViewState.value = PasswordUiState.Success(result) }