1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

many stupid thinkos and bugfixes; make it work

This commit is contained in:
Matthew Hodgson
2016-07-20 12:03:13 +01:00
parent 6bf5499289
commit 1365f18829
7 changed files with 211 additions and 29 deletions

View File

@@ -115,7 +115,7 @@ module.exports = {
getUrlPreviewsDisabled: function() {
var event = MatrixClientPeg.get().getAccountData("org.matrix.preview_urls");
return (event && event.disable);
return (event && event.getContent().disable);
},
setUrlPreviewsDisabled: function(disabled) {
@@ -126,7 +126,8 @@ module.exports = {
},
getSyncedSettings: function() {
return MatrixClientPeg.get().getAccountData("im.vector.web.settings") || {};
var event = MatrixClientPeg.get().getAccountData("im.vector.web.settings");
return event ? event.getContent() : {};
},
getSyncedSetting: function(type) {