mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
chat: pass full invites object
This commit is contained in:
parent
ca4a5af4e3
commit
a500038bed
@ -16,8 +16,8 @@ export class HeaderBar extends Component {
|
||||
// spinnerClasses = "spin-active";
|
||||
// }
|
||||
|
||||
let invites = (this.props.invites && this.props.invites.contacts)
|
||||
? this.props.invites.contacts
|
||||
let invites = (this.props.invites && this.props.invites["/contacts"])
|
||||
? this.props.invites["/contacts"]
|
||||
: {};
|
||||
|
||||
return (
|
||||
|
@ -41,8 +41,7 @@ export class Root extends Component {
|
||||
state.inbox[stat].config.length > state.inbox[stat].config.read;
|
||||
});
|
||||
|
||||
let invites = '/chat' in state.invites ?
|
||||
state.invites['/chat'] : {};
|
||||
let invites = !!state.invites ? state.invites : {'/chat': {}, '/contacts': {}};
|
||||
|
||||
let contacts = !!state.contacts ? state.contacts : {};
|
||||
let associations = !!state.associations ? state.associations : {chat: {}, contacts: {}};
|
||||
@ -54,7 +53,7 @@ export class Root extends Component {
|
||||
associations={associations}
|
||||
selectedGroups={state.selectedGroups}
|
||||
contacts={contacts}
|
||||
invites={invites}
|
||||
invites={invites["/chat"] || {}}
|
||||
unreads={unreads}
|
||||
api={api}
|
||||
station={station}
|
||||
|
Loading…
Reference in New Issue
Block a user