You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +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