Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: user reactions do not appear in userlist #18855

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions bigbluebutton-html5/imports/ui/Types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export interface Voice {
startTime: number;
}

export interface Reaction {
reactionEmoji: string;
}

export interface User {
userId: string;
extId: string;
Expand All @@ -66,4 +70,5 @@ export interface User {
size: number;
away: boolean;
raiseHand: boolean;
reaction: Reaction;
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ const UserListItem: React.FC<UserListItemProps> = ({ user, lockSettings }) => {
: <Icon iconName={normalizeEmojiName('away')} />;
} if (user.emoji !== 'none' && user.emoji !== 'notAway') {
return <Icon iconName={normalizeEmojiName(user.emoji)} />;
} if (user.reaction && user.reaction.reactionEmoji !== 'none') {
return user.reaction.reactionEmoji;
} if (user.name && userAvatarFiltered.length === 0) {
return user.name.toLowerCase().slice(0, 2);
} return '';
Expand Down
3 changes: 3 additions & 0 deletions bigbluebutton-html5/imports/ui/core/graphql/queries/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export const USER_LIST_SUBSCRIPTION = gql`subscription Users($offset: Int!, $lim
shortName
currentlyInRoom
}
reaction {
reactionEmoji
}
}
}`;

Expand Down