From ff9055252755ac312d55dfec640bd314dcc6bf39 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Tue, 5 Nov 2024 13:31:42 +0100 Subject: [PATCH] rename pair to triple Signed-off-by: Marcel Hibbe --- .../chat/data/network/OfflineFirstChatRepository.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/data/network/OfflineFirstChatRepository.kt b/app/src/main/java/com/nextcloud/talk/chat/data/network/OfflineFirstChatRepository.kt index b0fc8d081..7be5caaed 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/data/network/OfflineFirstChatRepository.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/data/network/OfflineFirstChatRepository.kt @@ -285,8 +285,8 @@ class OfflineFirstChatRepository @Inject constructor( val weHaveMessagesFromOurself = chatMessages.any { it.actorId == currentUser.userId } showUnreadMessagesMarker = showUnreadMessagesMarker && !weHaveMessagesFromOurself - val pair = Triple(true, showUnreadMessagesMarker, chatMessages) - _messageFlow.emit(pair) + val triple = Triple(true, showUnreadMessagesMarker, chatMessages) + _messageFlow.emit(triple) } else { Log.d(TAG, "resultsFromSync are null or empty") } @@ -684,8 +684,8 @@ class OfflineFirstChatRepository @Inject constructor( ) if (list.isNotEmpty()) { - val pair = Triple(false, false, list) - _messageFlow.emit(pair) + val triple = Triple(false, false, list) + _messageFlow.emit(triple) } } @@ -710,8 +710,8 @@ class OfflineFirstChatRepository @Inject constructor( ) if (list.isNotEmpty()) { - val pair = Triple(false, false, list) - _messageFlow.emit(pair) + val triple = Triple(false, false, list) + _messageFlow.emit(triple) } }