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

Make the settings page load for guests. Add checkboxes for guest r/w

This commit is contained in:
Kegan Dougal
2016-01-05 17:34:25 +00:00
parent 8bd4fdbd5a
commit d729dee31d
3 changed files with 54 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ limitations under the License.
*/
'use strict';
var q = require("q");
var MatrixClientPeg = require("./MatrixClientPeg");
var Notifier = require("./Notifier");
@@ -35,6 +35,11 @@ module.exports = {
},
loadThreePids: function() {
if (MatrixClientPeg.get().isGuest()) {
return q({
threepids: []
}); // guests can't poke 3pid endpoint
}
return MatrixClientPeg.get().getThreePids();
},