Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
matrix-react-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Matrix.org
matrix-react-sdk
Commits
4c2fe55f
Commit
4c2fe55f
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Don't show the error dialog if the request was canceled. Handle 'request entity too large'.
parent
e8f5131e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ContentMessages.js
+11
-5
11 additions, 5 deletions
src/ContentMessages.js
with
11 additions
and
5 deletions
src/ContentMessages.js
+
11
−
5
View file @
4c2fe55f
...
...
@@ -108,11 +108,17 @@ class ContentMessages {
return
matrixClient
.
sendMessage
(
roomId
,
content
);
},
function
(
err
)
{
dis
.
dispatch
({
action
:
'
upload_failed
'
,
upload
:
upload
});
if
(
!
upload
.
canceled
)
{
var
desc
=
"
The file '
"
+
upload
.
fileName
+
"
' failed to upload.
"
;
if
(
err
.
http_status
==
413
)
{
desc
=
"
The file '
"
+
upload
.
fileName
+
"
' exceeds this home server's size limit for uploads
"
;
}
var
ErrorDialog
=
sdk
.
getComponent
(
"
dialogs.ErrorDialog
"
);
Modal
.
createDialog
(
ErrorDialog
,
{
title
:
"
Upload Failed
"
,
description
:
"
The file '
"
+
upload
.
fileName
+
"
' failed to upload.
"
description
:
desc
});
}
}).
finally
(
function
()
{
var
inprogressKeys
=
Object
.
keys
(
self
.
inprogress
);
for
(
var
i
=
0
;
i
<
self
.
inprogress
.
length
;
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment