rename pair to triple

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-11-05 13:31:42 +01:00
parent 662ddd275e
commit ff90552527
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

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