mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-12 23:34:31 +01:00
use proper searchLabel
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
522d18e9d8
commit
c08da6f293
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user