Commit a32cb128 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix regression when deleting a message with attachments

parent c101b39a
......@@ -120,7 +120,6 @@ class ChatRoomAdapter(
val indexOfFirst = dataSet.indexOfFirst { it.messageId == message.messageId }
Timber.d("index: $index")
if (index > -1) {
message.nextDownStreamMessage = dataSet[index].nextDownStreamMessage
dataSet[index] = message
notifyItemChanged(index)
while (dataSet[index].nextDownStreamMessage != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment