mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
parent
1fe2bbdeed
commit
03515ea592
@ -71,10 +71,6 @@ class MagicIncomingTextMessageViewHolder(incomingView: View) : MessageHolders
|
||||
@BindView(R.id.quotedChatMessageView)
|
||||
var quotedChatMessageView: RelativeLayout? = null
|
||||
|
||||
@JvmField
|
||||
@BindView(R.id.quotedUserAvatar)
|
||||
var quotedUserAvatar: ImageView? = null
|
||||
|
||||
@JvmField
|
||||
@BindView(R.id.quotedMessageAuthor)
|
||||
var quotedUserName: EmojiTextView? = null
|
||||
@ -219,7 +215,6 @@ class MagicIncomingTextMessageViewHolder(incomingView: View) : MessageHolders
|
||||
|
||||
message.parentMessage?.let { parentChatMessage ->
|
||||
parentChatMessage.activeUser = message.activeUser
|
||||
imageLoader.loadImage(quotedUserAvatar, parentChatMessage.user.avatar, null)
|
||||
parentChatMessage.imageUrl?.let {
|
||||
quotedMessagePreview?.visibility = View.VISIBLE
|
||||
imageLoader.loadImage(quotedMessagePreview, it, null)
|
||||
|
@ -58,10 +58,6 @@ class MagicOutcomingTextMessageViewHolder(itemView: View) : OutcomingTextMessage
|
||||
@BindView(R.id.quotedChatMessageView)
|
||||
var quotedChatMessageView: RelativeLayout? = null
|
||||
|
||||
@JvmField
|
||||
@BindView(R.id.quotedUserAvatar)
|
||||
var quotedUserAvatar: ImageView? = null
|
||||
|
||||
@JvmField
|
||||
@BindView(R.id.quotedMessageAuthor)
|
||||
var quotedUserName: EmojiTextView? = null
|
||||
@ -144,7 +140,6 @@ class MagicOutcomingTextMessageViewHolder(itemView: View) : OutcomingTextMessage
|
||||
|
||||
message.parentMessage?.let { parentChatMessage ->
|
||||
parentChatMessage.activeUser = message.activeUser
|
||||
imageLoader.loadImage(quotedUserAvatar, parentChatMessage.user.avatar, null)
|
||||
parentChatMessage.imageUrl?.let {
|
||||
quotedMessagePreview?.visibility = View.VISIBLE
|
||||
imageLoader.loadImage(quotedMessagePreview, it, null)
|
||||
|
@ -1413,11 +1413,6 @@ class ChatController(args: Bundle) : BaseController(), MessagesListAdapter
|
||||
?: context.getText(R.string.nc_nick_guest)
|
||||
|
||||
conversationUser?.let { currentUser ->
|
||||
messageInputView?.findViewById<ImageView>(R.id.quotedUserAvatar)?.load(it.user.avatar) {
|
||||
addHeader("Authorization", currentUser.getCredentials())
|
||||
transformations(CircleCropTransformation())
|
||||
}
|
||||
|
||||
chatMessage.imageUrl?.let { previewImageUrl ->
|
||||
messageInputView?.findViewById<ImageView>(R.id.quotedMessageImage)?.visibility = View.VISIBLE
|
||||
|
||||
|
@ -14,24 +14,15 @@
|
||||
android:layout_alignBottom="@id/flexboxQuoted"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@color/colorPrimary"></View>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/quotedUserAvatar"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_toEndOf="@id/quoteColoredView"
|
||||
tools:src="@tools:sample/avatars[0]" />
|
||||
android:background="@color/colorPrimary"/>
|
||||
|
||||
<androidx.emoji.widget.EmojiTextView
|
||||
android:id="@+id/quotedMessageAuthor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@id/quotedUserAvatar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_toEndOf="@id/quotedUserAvatar"
|
||||
android:layout_marginStart="8dp"
|
||||
android:ellipsize="end"
|
||||
android:textSize="12sp"
|
||||
tools:text="Mario" />
|
||||
@ -40,8 +31,8 @@
|
||||
android:id="@+id/flexboxQuoted"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/quotedUserAvatar"
|
||||
android:layout_alignStart="@id/quotedUserAvatar"
|
||||
android:layout_below="@id/quotedMessageAuthor"
|
||||
android:layout_alignStart="@id/quotedMessageAuthor"
|
||||
android:layout_toStartOf="@id/cancelReplyButton"
|
||||
android:layout_marginTop="4dp"
|
||||
android:orientation="vertical"
|
||||
@ -66,7 +57,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/quotedMessageImage"
|
||||
android:layout_alignStart="@id/quotedUserAvatar"
|
||||
android:layout_alignStart="@id/quotedMessageAuthor"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:textSize="14sp"
|
||||
app:layout_alignSelf="flex_start"
|
||||
@ -83,8 +74,6 @@
|
||||
app:layout_alignSelf="center"
|
||||
android:textColor="@color/warm_grey_four"
|
||||
tools:text="16:08" />
|
||||
/>
|
||||
|
||||
</com.google.android.flexbox.FlexboxLayout>
|
||||
|
||||
<ImageButton
|
||||
|
Loading…
Reference in New Issue
Block a user