remove unused imports

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-11-14 07:40:25 +01:00 committed by Marcel Hibbe
parent 228c73ce60
commit 51330cbc76
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -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)
}