mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
remove unused imports
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
228c73ce60
commit
51330cbc76
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
package com.nextcloud.talk.conversationinfo.viewmodel
|
package com.nextcloud.talk.conversationinfo.viewmodel
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import androidx.lifecycle.DefaultLifecycleObserver
|
import androidx.lifecycle.DefaultLifecycleObserver
|
||||||
import androidx.lifecycle.LifecycleOwner
|
import androidx.lifecycle.LifecycleOwner
|
||||||
|
@ -252,7 +251,7 @@ class ConversationInfoViewModel @Inject constructor(
|
||||||
try{
|
try{
|
||||||
val allowGuestsResult = conversationsRepository.allowGuests(token,allow)
|
val allowGuestsResult = conversationsRepository.allowGuests(token,allow)
|
||||||
val statusCode: GenericMeta? = allowGuestsResult.ocs?.meta
|
val statusCode: GenericMeta? = allowGuestsResult.ocs?.meta
|
||||||
val result = (statusCode?.statusCode == STATUS_CODE_OK)
|
val result = statusCode?.statusCode == STATUS_CODE_OK
|
||||||
if (result) {
|
if (result) {
|
||||||
_allowGuestsViewState.value = AllowGuestsUIState.Success(allow)
|
_allowGuestsViewState.value = AllowGuestsUIState.Success(allow)
|
||||||
}
|
}
|
||||||
|
@ -269,7 +268,7 @@ class ConversationInfoViewModel @Inject constructor(
|
||||||
try{
|
try{
|
||||||
val setPasswordResult = conversationsRepository.setPassword(password,token)
|
val setPasswordResult = conversationsRepository.setPassword(password,token)
|
||||||
val statusCode: GenericMeta? = setPasswordResult.ocs?.meta
|
val statusCode: GenericMeta? = setPasswordResult.ocs?.meta
|
||||||
val result = (statusCode?.statusCode == STATUS_CODE_OK)
|
val result = statusCode?.statusCode == STATUS_CODE_OK
|
||||||
if(result){
|
if(result){
|
||||||
_passwordViewState.value = PasswordUiState.Success(result)
|
_passwordViewState.value = PasswordUiState.Success(result)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue