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 2e3d629357..c4543d9fb2 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 @@ -84,12 +84,16 @@ class IncomingTextMessageViewHolder(itemView: View, payload: Any) : itemView.isSelected = false val user = currentUserProvider.currentUser.blockingGet() - var textSize = context.resources!!.getDimension(R.dimen.chat_text_size) - val hasCheckboxes = processCheckboxes( message, user ) + processMessage(message,hasCheckboxes) + } + + private fun processMessage(message: ChatMessage, hasCheckboxes: Boolean) { + + var textSize = context.resources!!.getDimension(R.dimen.chat_text_size) if (!hasCheckboxes) { var processedMessageText = messageUtils.enrichChatMessageText( binding.messageText.context, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index de2a5dc20c..906934261c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -594,7 +594,7 @@ How to translate with transifex: Chat via %s Account not found Edit - (edited by %1$s) + Save Save to storage?