mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-12 15:24:09 +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"]
|
||||
}
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user