Skip to content

Commit

Permalink
fix: mention draft update [WPB-12062] (#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas authored Feb 7, 2025
1 parent 24cdf16 commit 038c90a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ class MessageCompositionHolder(
appLogger.e("MessageCompositionHolder: Failure to add mention")
return
}
insertMentionIntoText(mention)
messageComposition.update {
it.copy(
selectedMentions = it.selectedMentions.plus(mention).sortedBy { it.start }
)
}
insertMentionIntoText(mention)
}

private fun insertMentionIntoText(mention: UIMention) {
Expand Down

0 comments on commit 038c90a

Please sign in to comment.