use proper searchLabel

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-02-07 10:22:04 +01:00
parent 522d18e9d8
commit c08da6f293
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220

View File

@ -119,13 +119,13 @@ class MessageUtils(val context: Context) {
individualHashMap["id"] individualHashMap["id"]
} }
val label = individualHashMap["name"]!! val label = individualHashMap["name"]!!
val mentionId = individualHashMap["id"]
val type = individualHashMap["type"]!! val type = individualHashMap["type"]!!
val labelToSearch = if (type == "circle") { val labelToSearch = if (type == "circle" || type == "teams") {
"@team/$label" "@team/$mentionId"
} else { } else{
"@$label" ""
} }
messageStringInternal = DisplayUtils.replaceLabelWithPlaceholder( messageStringInternal = DisplayUtils.replaceLabelWithPlaceholder(
messageStringInternal, messageStringInternal,
labelToSearch, labelToSearch,