mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 22:29:09 +00:00
add team support for mentions
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
11fc9fa0d0
commit
f02257d5ff
@ -165,6 +165,12 @@ class MentionAutocompleteItem(
|
||||
}
|
||||
}
|
||||
|
||||
SOURCE_TEAMS ->{
|
||||
holder.binding.avatarView.loadUserAvatar(
|
||||
viewThemeUtils.talk.themePlaceholderAvatar(holder.binding.avatarView, R.drawable.ic_avatar_group)
|
||||
)
|
||||
}
|
||||
|
||||
else -> {
|
||||
holder.binding.avatarView.loadUserAvatar(
|
||||
currentUser,
|
||||
@ -237,6 +243,7 @@ class MentionAutocompleteItem(
|
||||
const val SOURCE_GUESTS = "guests"
|
||||
const val SOURCE_GROUPS = "groups"
|
||||
const val SOURCE_EMAILS = "emails"
|
||||
const val SOURCE_TEAMS = "teams"
|
||||
const val SOURCE_FEDERATION = "federated_users"
|
||||
}
|
||||
}
|
||||
|
@ -838,7 +838,8 @@ class MessageInputFragment : Fragment() {
|
||||
mentionId.contains("@") ||
|
||||
mentionId.startsWith("guest/") ||
|
||||
mentionId.startsWith("group/") ||
|
||||
mentionId.startsWith("email/")
|
||||
mentionId.startsWith("email/") ||
|
||||
mentionId.startsWith("team/")
|
||||
if (shouldQuote) {
|
||||
mentionId = "\"" + mentionId + "\""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user