From 722914fb6cbfd783cba62907fe1b21e3d3832c1a Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 16 Sep 2024 12:56:20 +0200 Subject: [PATCH] fix to show user status in conversation list Signed-off-by: Marcel Hibbe --- .../data/network/OfflineFirstConversationsRepository.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationlist/data/network/OfflineFirstConversationsRepository.kt b/app/src/main/java/com/nextcloud/talk/conversationlist/data/network/OfflineFirstConversationsRepository.kt index 397a86dca7..1258ee649e 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationlist/data/network/OfflineFirstConversationsRepository.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationlist/data/network/OfflineFirstConversationsRepository.kt @@ -19,6 +19,7 @@ import com.nextcloud.talk.data.database.model.ConversationEntity import com.nextcloud.talk.data.network.NetworkMonitor import com.nextcloud.talk.data.user.model.User import com.nextcloud.talk.models.domain.ConversationModel +import com.nextcloud.talk.utils.CapabilitiesUtil.isUserStatusAvailable import com.nextcloud.talk.utils.database.user.CurrentUserProviderNew import io.reactivex.Observer import io.reactivex.android.schedulers.AndroidSchedulers @@ -107,8 +108,10 @@ class OfflineFirstConversationsRepository @Inject constructor( return null } + val includeStatus = isUserStatusAvailable(user) + try { - val conversationsList = network.getRooms(user, user.baseUrl!!, false) + val conversationsList = network.getRooms(user, user.baseUrl!!, includeStatus) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .blockingSingle()