Start refactoring RoomSettings

- Don't manipulate settings in RoomView. Make it RoomSettings' job.
- Return Promise[] from AliasSettings.save() rather than an allSettled promise
  so callers can have more granularity over what to do with it (.all vs .allSettled)
- General refactoring of RoomSettings. Most things are broken now and are not
  submitted. Add util methods to grab values out of events.
This commit is contained in:
Kegan Dougal 2016-02-04 15:26:12 +00:00
parent 6c9d48bd3a
commit 4013dae770
3 changed files with 153 additions and 231 deletions

View file

@ -114,7 +114,7 @@ module.exports = React.createClass({
}
}
return q.allSettled(promises);
return promises;
},
aliasEventsToDictionary: function(aliasEvents) { // m.room.alias events