fix(jump-to-time): friendly message when homeserver lacks MSC3030
Jump to Time uses timestampToEvent (MSC3030). On a homeserver that doesn't support it, the dialog showed the raw "M_UNRECOGNIZED: Unrecognized request" error. Show a clear explanation instead when errcode is M_UNRECOGNIZED. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -234,7 +234,9 @@ export function JumpToTime({ onCancel, onSubmit }: JumpToTimeProps) {
|
|||||||
</Box>
|
</Box>
|
||||||
{timestampState.status === AsyncStatus.Error && (
|
{timestampState.status === AsyncStatus.Error && (
|
||||||
<Text style={{ color: color.Critical.Main }} size="T300">
|
<Text style={{ color: color.Critical.Main }} size="T300">
|
||||||
{timestampState.error.message}
|
{timestampState.error.errcode === 'M_UNRECOGNIZED'
|
||||||
|
? "Your homeserver doesn't support jumping to a date or time (MSC3030)."
|
||||||
|
: timestampState.error.message}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user