Commit 9c32ec50 authored by Divyanshu Bhargava's avatar Divyanshu Bhargava

edited message indicator

parent 46eff2d8
......@@ -4,6 +4,7 @@ import android.graphics.Color
import android.text.method.LinkMovementMethod
import android.view.View
import chat.rocket.android.chatroom.viewmodel.MessageViewModel
import chat.rocket.android.util.extensions.setVisible
import chat.rocket.android.widget.emoji.EmojiReactionListener
import kotlinx.android.synthetic.main.avatar.view.*
import kotlinx.android.synthetic.main.item_message.view.*
......@@ -33,6 +34,9 @@ class MessageViewHolder(
text_content.setTextColor(
if (data.isTemporary) Color.GRAY else Color.BLACK
)
if (data.message.editedBy != null){
image_edit_indicator.setVisible(true)
}
}
}
}
\ No newline at end of file
......@@ -74,6 +74,16 @@
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
tools:text="11:45 PM" />
<ImageView
android:id="@+id/image_edit_indicator"
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_edit_black_24px"
android:layout_marginStart="8dp"
android:layout_gravity="center_vertical"
android:visibility="gone"
tools:visibility="visible"/>
</LinearLayout>
<TextView
......
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