feat(bot): increase bot transparency
This commit removes some actions and interactions that a bot user should not be part: - No actions available when clicking over bot user in the user-list - Remove bot from exported user-list - Remove bot from available users to be assigned to breakouts
This commit is contained in:
parent
c359a38329
commit
22c2a371b0
@ -88,6 +88,7 @@ select_permissions:
|
||||
- disconnected
|
||||
- expired
|
||||
- extId
|
||||
- bot
|
||||
- guest
|
||||
- guestStatus
|
||||
- hasDrawPermissionOnCurrentPage
|
||||
|
@ -89,6 +89,7 @@ export interface User {
|
||||
reactionEmoji: string;
|
||||
presenter?: boolean;
|
||||
pinned?: boolean;
|
||||
bot?: boolean;
|
||||
guest?: boolean;
|
||||
guestStatus: string;
|
||||
joinErrorCode: string;
|
||||
|
@ -25,6 +25,7 @@ export interface getBreakoutsResponse {
|
||||
export const getUser = gql`
|
||||
query getUser {
|
||||
user(
|
||||
where: { bot: {_eq: false } }
|
||||
order_by: [
|
||||
{role: asc},
|
||||
{raiseHandTime: asc_nulls_last},
|
||||
|
@ -565,7 +565,7 @@ const UserActions: React.FC<UserActionsProps> = ({
|
||||
];
|
||||
|
||||
const actions = dropdownOptions.filter((key) => key.allowed);
|
||||
if (!actions.length) {
|
||||
if (!actions.length || user.bot) {
|
||||
return (
|
||||
<span>
|
||||
{children}
|
||||
|
@ -30,6 +30,7 @@ subscription UserListSubscription($offset: Int!, $limit: Int!) {
|
||||
locked
|
||||
authed
|
||||
mobile
|
||||
bot
|
||||
guest
|
||||
clientType
|
||||
disconnected
|
||||
@ -79,7 +80,7 @@ export const GET_USER_IDS = gql`
|
||||
|
||||
export const GET_USER_NAMES = gql`
|
||||
query Users {
|
||||
user {
|
||||
user(where: { bot: { _eq: false } } ) {
|
||||
name
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user