If we don't get a specific event because of permissions, say so

pull/21833/head
David Baker 2016-03-22 17:33:46 +00:00
parent 4e9c37c069
commit 87d853d56b
1 changed files with 7 additions and 1 deletions

View File

@ -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, {
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,
});
}