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"]
}
val label = individualHashMap["name"]!!
val mentionId = individualHashMap["id"]
val type = individualHashMap["type"]!!
val labelToSearch = if (type == "circle") {
"@team/$label"
} else {
"@$label"
val labelToSearch = if (type == "circle" || type == "teams") {
"@team/$mentionId"
} else{
""
}
messageStringInternal = DisplayUtils.replaceLabelWithPlaceholder(
messageStringInternal,
labelToSearch,