diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingTextMessageViewHolder.kt b/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingTextMessageViewHolder.kt
index b4883ffb2..9fab9306c 100644
--- a/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingTextMessageViewHolder.kt
+++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingTextMessageViewHolder.kt
@@ -218,7 +218,6 @@ class IncomingTextMessageViewHolder(itemView: View, payload: Any) :
)
binding.messageQuote.quotedChatMessageView.setOnClickListener {
- val chatActivity = commonMessageInterface as ChatActivity
chatActivity.jumpToQuotedMessage(parentChatMessage)
}
} catch (e: Exception) {
diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt
index b1a19a0fa..07ccb5cd3 100644
--- a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt
+++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt
@@ -124,12 +124,9 @@ class OutcomingTextMessageViewHolder(itemView: View) :
binding.sendingProgress.visibility = View.GONE
if (message.sendingFailed) {
- updateStatus(
- R.drawable.baseline_report_problem_24,
- context.resources?.getString(R.string.nc_message_failed)
- )
+ updateStatus(R.drawable.baseline_error_outline_24, context.resources?.getString(R.string.nc_message_failed))
} else if (message.isTemporary) {
- showSendingSpinner()
+ updateStatus(R.drawable.baseline_schedule_24, context.resources?.getString(R.string.nc_message_sending))
} else if (message.readStatus == ReadStatus.READ) {
updateStatus(R.drawable.ic_check_all, context.resources?.getString(R.string.nc_message_read))
} else if (message.readStatus == ReadStatus.SENT) {
@@ -170,13 +167,6 @@ class OutcomingTextMessageViewHolder(itemView: View) :
binding.checkMark.contentDescription = description
}
- private fun showSendingSpinner() {
- binding.sendingProgress.visibility = View.VISIBLE
- binding.checkMark.visibility = View.GONE
-
- viewThemeUtils.material.colorProgressBar(binding.sendingProgress)
- }
-
private fun longClickOnReaction(chatMessage: ChatMessage) {
commonMessageInterface.onLongClickReactions(chatMessage)
}
@@ -205,7 +195,7 @@ class OutcomingTextMessageViewHolder(itemView: View) :
).first()
}
- parentChatMessage!!.activeUser = message.activeUser
+ parentChatMessage.activeUser = message.activeUser
parentChatMessage.imageUrl?.let {
binding.messageQuote.quotedMessageImage.visibility = View.VISIBLE
binding.messageQuote.quotedMessageImage.load(it) {
@@ -232,7 +222,6 @@ class OutcomingTextMessageViewHolder(itemView: View) :
viewThemeUtils.talk.colorOutgoingQuoteBackground(binding.messageQuote.quoteColoredView)
binding.messageQuote.quotedChatMessageView.setOnClickListener {
- val chatActivity = commonMessageInterface as ChatActivity
chatActivity.jumpToQuotedMessage(parentChatMessage)
}
} catch (e: Exception) {
diff --git a/app/src/main/res/drawable/baseline_error_outline_24.xml b/app/src/main/res/drawable/baseline_error_outline_24.xml
new file mode 100644
index 000000000..b040255b5
--- /dev/null
+++ b/app/src/main/res/drawable/baseline_error_outline_24.xml
@@ -0,0 +1,16 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/baseline_schedule_24.xml b/app/src/main/res/drawable/baseline_schedule_24.xml
new file mode 100644
index 000000000..c5334702b
--- /dev/null
+++ b/app/src/main/res/drawable/baseline_schedule_24.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/item_custom_outcoming_text_message.xml b/app/src/main/res/layout/item_custom_outcoming_text_message.xml
index a124f1931..711367f4b 100644
--- a/app/src/main/res/layout/item_custom_outcoming_text_message.xml
+++ b/app/src/main/res/layout/item_custom_outcoming_text_message.xml
@@ -95,22 +95,16 @@
app:tint="@color/high_emphasis_text"
tools:src="@drawable/ic_warning_white"/>
-
+ app:layout_alignSelf="center"
+ app:tint="@color/high_emphasis_text"
+ tools:src="@drawable/baseline_schedule_24"/>
Message sent
Offline
Failed
+ Sending
Failed to send message:
Remote audio off
Add attachment