Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix exception while saving room settings #2555

Merged
merged 1 commit into from
Feb 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/components/views/rooms/RoomSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,6 @@ module.exports = React.createClass({
promises.push(p);
}

// url preview settings
const ps = this.saveUrlPreviewSettings();
if (ps.length > 0) {
ps.map((p) => promises.push(p));
}

// related groups
promises.push(this.saveRelatedGroups());

Expand Down Expand Up @@ -346,11 +340,6 @@ module.exports = React.createClass({
return this.refs.color_settings.saveSettings();
},

saveUrlPreviewSettings: function() {
if (!this.refs.url_preview_settings) { return Promise.resolve(); }
return this.refs.url_preview_settings.saveSettings();
},

saveEnableEncryption: function() {
if (!this.refs.encrypt) { return Promise.resolve(); }

Expand Down