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:
parent
6c9d48bd3a
commit
4013dae770
3 changed files with 153 additions and 231 deletions
|
@ -114,7 +114,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
}
|
||||
|
||||
return q.allSettled(promises);
|
||||
return promises;
|
||||
},
|
||||
|
||||
aliasEventsToDictionary: function(aliasEvents) { // m.room.alias events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue