mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 11:57:49 +00:00
Add support for avatar status badge (presence)
This commit is contained in:
committed by
Zoltan Bettenbuk
parent
9645391180
commit
e683d70a18
@@ -23,6 +23,11 @@ type Props = {
|
||||
*/
|
||||
avatarSize?: number,
|
||||
|
||||
/**
|
||||
* One of the expected status strings (e.g. 'available') to render a badge on the avatar, if necessary.
|
||||
*/
|
||||
avatarStatus?: ?string,
|
||||
|
||||
/**
|
||||
* External style to be applied to the avatar (icon).
|
||||
*/
|
||||
@@ -83,6 +88,7 @@ export default class AvatarListItem extends Component<Props> {
|
||||
const {
|
||||
avatarOnly,
|
||||
avatarSize = AVATAR_SIZE,
|
||||
avatarStatus,
|
||||
avatarStyle
|
||||
} = this.props;
|
||||
const { avatar, colorBase, lines, title } = this.props.item;
|
||||
@@ -96,6 +102,7 @@ export default class AvatarListItem extends Component<Props> {
|
||||
colorBase = { colorBase }
|
||||
displayName = { title }
|
||||
size = { avatarSize }
|
||||
status = { avatarStatus }
|
||||
style = { avatarStyle }
|
||||
url = { avatar } />
|
||||
{ avatarOnly || <Container style = { styles.listItemDetails }>
|
||||
|
||||
Reference in New Issue
Block a user