mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-13 03:01:05 +00:00
ktlint Format
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
06e48c6aad
commit
082669a3bf
@ -2546,19 +2546,14 @@ class ChatActivity :
|
||||
|
||||
private fun isScrolledToBottom() = layoutManager?.findFirstVisibleItemPosition() == 0
|
||||
|
||||
private fun shouldInsertNewMessagesNotice(
|
||||
newMessagesAvailable: Boolean,
|
||||
chatMessageList: List<ChatMessage>
|
||||
) = if (newMessagesAvailable) {
|
||||
chatMessageList.any { it.actorId != conversationUser!!.userId }
|
||||
} else {
|
||||
false
|
||||
}
|
||||
private fun shouldInsertNewMessagesNotice(newMessagesAvailable: Boolean, chatMessageList: List<ChatMessage>) =
|
||||
if (newMessagesAvailable) {
|
||||
chatMessageList.any { it.actorId != conversationUser!!.userId }
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
private fun updateUnreadMessageInfos(
|
||||
chatMessageList: List<ChatMessage>,
|
||||
scrollToEndOnUpdate: Boolean
|
||||
) {
|
||||
private fun updateUnreadMessageInfos(chatMessageList: List<ChatMessage>, scrollToEndOnUpdate: Boolean) {
|
||||
val unreadChatMessage = ChatMessage()
|
||||
unreadChatMessage.jsonMessageId = -1
|
||||
unreadChatMessage.actorId = "-1"
|
||||
|
Loading…
Reference in New Issue
Block a user