Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit a821e89

Browse files
committed
Add FIXME comment.
1 parent d3b358e commit a821e89

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/chat/rocket/android/chatroom/adapter/ChatRoomAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class ChatRoomAdapter(
173173
notifyDataSetChanged()
174174
}
175175

176+
// FIXME What's 0,1 and 2 means for here?
176177
fun updateItem(message: BaseUiModel<*>): Int {
177178
val index = dataSet.indexOfLast { it.messageId == message.messageId }
178179
val indexOfNext = dataSet.indexOfFirst { it.messageId == message.messageId }

app/src/main/java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
554554
if (message.isEmpty()) return@ui
555555

556556
when (chatRoomAdapter.updateItem(message.last())) {
557+
// FIXME: What's 0,1 and 2 means for here?
557558
0 -> {
558559
if (message.size > 1) {
559560
chatRoomAdapter.prependData(listOf(message.first()))

0 commit comments

Comments
 (0)