stuff
This commit is contained in:
parent
5b3f1fbdb8
commit
986169dfab
|
@ -93,7 +93,7 @@ module.exports = (_ => {
|
|||
let owner = BDFDB.LibraryModules.UserStore.getUser(this.props.guild.ownerId);
|
||||
if (!owner && !this.state.fetchedOwner) {
|
||||
this.state.fetchedOwner = true;
|
||||
BDFDB.LibraryModules.UserFetchUtils.getUser(this.props.guild.ownerId).then(_ => BDFDB.ReactUtils.forceUpdate(this));
|
||||
BDFDB.LibraryModules.UserProfileUtils.getUser(this.props.guild.ownerId).then(_ => BDFDB.ReactUtils.forceUpdate(this));
|
||||
}
|
||||
let src = this.props.guild.getIconURL(this.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(this.props.guild.icon));
|
||||
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||
|
|
|
@ -105,7 +105,7 @@ module.exports = (_ => {
|
|||
componentDidMount() {
|
||||
if (this.props.user.fetchable) {
|
||||
this.props.user.fetchable = false;
|
||||
BDFDB.LibraryModules.UserFetchUtils.getUser(this.props.user.id).then(fetchedUser => {
|
||||
BDFDB.LibraryModules.UserProfileUtils.getUser(this.props.user.id).then(fetchedUser => {
|
||||
this.props.user = Object.assign({}, fetchedUser, BDFDB.LibraryModules.MemberStore.getMember(this.props.guildId, this.props.user.id) || {});
|
||||
BDFDB.ReactUtils.forceUpdate(this);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue