Skip to content

Commit

Permalink
Merge branch 'allow-gif-as-supported-profile-image' into 'master'
Browse files Browse the repository at this point in the history
chore: allow gif as supported profile image

See merge request kchat/webapp!904
  • Loading branch information
antonbuks committed Aug 28, 2024
2 parents 5963ee7 + c6efb35 commit 169a489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export default class AddBot extends React.PureComponent<Props, State> {
defaultMessage='Upload Image'
/>
<input
accept={Constants.ACCEPT_STATIC_IMAGE}
accept={Constants.ACCEPT_EMOJI_IMAGE}
type='file'
onChange={this.updatePicture}
/>
Expand Down
2 changes: 1 addition & 1 deletion webapp/channels/src/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ export const WindowSizes = {
DESKTOP_VIEW: 'desktopView',
};

export const AcceptedProfileImageTypes = ['image/jpeg', 'image/png', 'image/bmp'];
export const AcceptedProfileImageTypes = ['image/jpeg', 'image/png', 'image/bmp', 'image/gif'];

export const searchHintOptions = [{searchTerm: 'From:', message: {id: t('search_list_option.from'), defaultMessage: 'Messages from a user'}},
{searchTerm: 'In:', message: {id: t('search_list_option.in'), defaultMessage: 'Messages in a channel'}},
Expand Down

0 comments on commit 169a489

Please sign in to comment.