Skip to content

Commit

Permalink
Merge pull request #513 from GetStream/change-client-side-file-extens…
Browse files Browse the repository at this point in the history
…ion-error-message

fix: Update client-side error message for mime type errors
  • Loading branch information
szuperaz authored Nov 29, 2023
2 parents fa2efe2 + e704a4e commit be37850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions projects/stream-chat-angular/src/assets/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const en = {
'Error uploading file, maximum file size exceeded':
'Error uploading "{{ name }}", maximum file size {{ limit }} exceeded',
'Error uploading file, extension not supported':
'Error uploading "{{ name }}", extension {{ ext }} not supported',
'Error uploading "{{ name }}", type {{ ext }} not supported',
'Error deleting attachment': 'Error deleting attachment',
'Error · Unsent': "Message couldn't be sent",
'Error: {{ errorMessage }}': 'Error: {{ errorMessage }}',
Expand Down Expand Up @@ -98,7 +98,6 @@ export const en = {
"You can't send messages in this channel",
"You can't send thread replies in this channel":
"You can't send thread replies in this channel",
'Unsupported file type: {{type}}': 'Unsupported file type: {{type}}',
'Message not found': 'Message not found',
'No chats here yet…': 'No chats here yet…',
'user is typing': '{{ user }} is typing',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ export class MessageInputComponent
hasNotAllowedMimeType
) {
this.notificationService.addTemporaryNotification(
'streamChat.Unsupported file type: {{type}}',
'streamChat.Error uploading file, extension not supported',
undefined,
undefined,
{ type: f.type }
{ name: f.name, ext: f.type }
);
isValid = false;
}
Expand Down

0 comments on commit be37850

Please sign in to comment.