You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
If we don't get a specific event because of permissions, say so
This commit is contained in:
@ -587,9 +587,15 @@ var TimelinePanel = React.createClass({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
var message = "Vector was trying to load a specific point in this room's timeline but ";
|
||||||
|
if (error.errcode == 'M_FORBIDDEN') {
|
||||||
|
message += "you do not have permission to view the message in question.";
|
||||||
|
} else {
|
||||||
|
message += "was unable to find it.";
|
||||||
|
}
|
||||||
Modal.createDialog(ErrorDialog, {
|
Modal.createDialog(ErrorDialog, {
|
||||||
title: "Failed to load timeline position",
|
title: "Failed to load timeline position",
|
||||||
description: "Vector was trying to load a specific point in this room's timeline but was unable to find it.",
|
description: message,
|
||||||
onFinished: onFinished,
|
onFinished: onFinished,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user