add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-21 01:18:21 +01:00
parent a45dc837b4
commit ed1f801254
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -625,6 +625,7 @@ module.exports = React.createClass({
SettingLevel.ROOM_ACCOUNT,
];
let showUrlPreview;
// in e2ee rooms only care about room-device and room-account, so that user has to explicitly enable previews
if (MatrixClientPeg.get().isRoomEncrypted(roomId)) {
for (const level of levels) {
const value = SettingsStore.getValueAt(level, "urlPreviewsEnabled", roomId, true, true);