mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 05:55:39 +03:00
rename pair to triple
Signed-off-by: Marcel Hibbe <dev@mhibbe.de> [skip ci]
This commit is contained in:
parent
f4b35858df
commit
72b6137c7f
1 changed files with 6 additions and 6 deletions
|
@ -285,8 +285,8 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||||
val weHaveMessagesFromOurself = chatMessages.any { it.actorId == currentUser.userId }
|
val weHaveMessagesFromOurself = chatMessages.any { it.actorId == currentUser.userId }
|
||||||
showUnreadMessagesMarker = showUnreadMessagesMarker && !weHaveMessagesFromOurself
|
showUnreadMessagesMarker = showUnreadMessagesMarker && !weHaveMessagesFromOurself
|
||||||
|
|
||||||
val pair = Triple(true, showUnreadMessagesMarker, chatMessages)
|
val triple = Triple(true, showUnreadMessagesMarker, chatMessages)
|
||||||
_messageFlow.emit(pair)
|
_messageFlow.emit(triple)
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG, "resultsFromSync are null or empty")
|
Log.d(TAG, "resultsFromSync are null or empty")
|
||||||
}
|
}
|
||||||
|
@ -684,8 +684,8 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||||
)
|
)
|
||||||
|
|
||||||
if (list.isNotEmpty()) {
|
if (list.isNotEmpty()) {
|
||||||
val pair = Triple(false, false, list)
|
val triple = Triple(false, false, list)
|
||||||
_messageFlow.emit(pair)
|
_messageFlow.emit(triple)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,8 +710,8 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||||
)
|
)
|
||||||
|
|
||||||
if (list.isNotEmpty()) {
|
if (list.isNotEmpty()) {
|
||||||
val pair = Triple(false, false, list)
|
val triple = Triple(false, false, list)
|
||||||
_messageFlow.emit(pair)
|
_messageFlow.emit(triple)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue