-
-
Notifications
You must be signed in to change notification settings - Fork 829
Linkify User Interactive Authentication errors #12271
Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain a bit more about what this actually does? Maybe a screenshot? I feel I'm lacking context here.
Synapse does not yet return links in UIA responses but will as part of the work for https://github.com/element-hq/element-internal/issues/583 / element-hq/element-web#27045 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
@@ -168,7 +170,9 @@ export default class InteractiveAuthDialog<T> extends React.Component<Interactiv | |||
if (this.state.authError) { | |||
content = ( | |||
<div id="mx_Dialog_content"> | |||
<div role="alert">{this.state.authError.message || this.state.authError.toString()}</div> | |||
<Linkify options={linkifyMatrixOptions}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record: I asked @t3chguy whether the fact that UIA error
messages should be linkified was mentioned in an MSC anywhere. The answer is that it is not. But also, since this work is basically being done as a way of getting rid of UIA, MSCing it is probably not worthwhile.
(There is also precedent for EW linkifying things that are returned from the server, such as m.room.topic
s and timeline event bodies in general.)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Skipping code coverage due to splitting file to get around import cycle |
No description provided.