Skip to content

Commit

Permalink
remove unused strings and use small functions
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <[email protected]>
  • Loading branch information
sowjanyakch committed Feb 21, 2025
1 parent bfed721 commit fb37209
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ How to translate with transifex:
<string name="nc_phone_book_integration_chat_via">Chat via %s</string>
<string name="nc_phone_book_integration_account_not_found">Account not found</string>
<string name= "nc_edit">Edit</string>
<string name="edited_by">(edited by %1$s)</string>

<!-- save feature -->
<string name="nc_save_message">Save</string>
<string name="nc_dialog_save_to_storage_title">Save to storage?</string>
Expand Down

0 comments on commit fb37209

Please sign in to comment.