mirror of https://github.com/vector-im/riot-web
If we don't get a specific event because of permissions, say so
parent
4e9c37c069
commit
87d853d56b
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue