You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msglist: Give error alert when tapped link has URL that didn't parse
Just before this commit, if an `href` fails to parse, it would do so
in the `new URL` call that's meant to pass a URL object to
`getNarrowFromLink` (the line with the comment "TODO: Use parsedUrl,
below").
The error would propagate up to messageLinkPress's caller, in
handleWebViewOutboundEvent, and from there to a React event handler,
with the result (I expect) that the app wouldn't crash, but it also
wouldn't give any useful feedback to the user.
So, give some useful feedback to the user. The issue is filed as
"Fail early (and tell user) on a message-link tap when the URL
doesn't parse" (#5518) . I guess we have been failing early, we just
haven't been telling the user.
Fixes: #5518
Copy file name to clipboardExpand all lines: static/translations/messages_en.json
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@
12
12
"Notify everyone": "Notify everyone",
13
13
"Cannot open image": "Cannot open image",
14
14
"Invalid image URL.": "Invalid image URL.",
15
+
"Cannot open link": "Cannot open link",
16
+
"Invalid URL.": "Invalid URL.",
15
17
"Invisible mode": "Invisible mode",
16
18
"{num_of_people, plural,\n one {This message has been <z-link>read</z-link> by {num_of_people} person:}\n other {This message has been <z-link>read</z-link> by {num_of_people} people:}}": "{num_of_people, plural,\n one {This message has been <z-link>read</z-link> by {num_of_people} person:}\n other {This message has been <z-link>read</z-link> by {num_of_people} people:}}",
0 commit comments