mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 14:35:40 +03:00
ktlint Format
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
06e48c6aad
commit
082669a3bf
1 changed files with 7 additions and 12 deletions
|
@ -2546,19 +2546,14 @@ class ChatActivity :
|
||||||
|
|
||||||
private fun isScrolledToBottom() = layoutManager?.findFirstVisibleItemPosition() == 0
|
private fun isScrolledToBottom() = layoutManager?.findFirstVisibleItemPosition() == 0
|
||||||
|
|
||||||
private fun shouldInsertNewMessagesNotice(
|
private fun shouldInsertNewMessagesNotice(newMessagesAvailable: Boolean, chatMessageList: List<ChatMessage>) =
|
||||||
newMessagesAvailable: Boolean,
|
if (newMessagesAvailable) {
|
||||||
chatMessageList: List<ChatMessage>
|
|
||||||
) = if (newMessagesAvailable) {
|
|
||||||
chatMessageList.any { it.actorId != conversationUser!!.userId }
|
chatMessageList.any { it.actorId != conversationUser!!.userId }
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateUnreadMessageInfos(
|
private fun updateUnreadMessageInfos(chatMessageList: List<ChatMessage>, scrollToEndOnUpdate: Boolean) {
|
||||||
chatMessageList: List<ChatMessage>,
|
|
||||||
scrollToEndOnUpdate: Boolean
|
|
||||||
) {
|
|
||||||
val unreadChatMessage = ChatMessage()
|
val unreadChatMessage = ChatMessage()
|
||||||
unreadChatMessage.jsonMessageId = -1
|
unreadChatMessage.jsonMessageId = -1
|
||||||
unreadChatMessage.actorId = "-1"
|
unreadChatMessage.actorId = "-1"
|
||||||
|
|
Loading…
Reference in a new issue