This commit is contained in:
Jean Ouina 2020-07-05 02:51:21 +02:00
parent e9de72b059
commit ecc1799951
3 changed files with 59 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -72,6 +72,10 @@ export default new class ContentManager {
delete addonCache[key]
return
}
if(value.result.suspect){ // refetch from remote to be sure you're up to date.
delete addonCache[key]
return
}
})
this.saveAddonCache()
}

View File

@ -168,8 +168,31 @@ export default new class EmojiModule {
data.methodArguments[0].childrenMessageContent.props.content.push(newContent.shift())
}
}});
}/*
let userModule
window.Lightcord.Api.ensureExported(e => e.default && e.default.displayName === "EmojiPickerListRow")
.then(EmojiPickerListRow => {
let classs = EmojiPickerListRow.default
EmojiPickerListRow.default = class EmojiPickerListRow extends React.Component {
constructor(props){
super(props)
}
render(){
if(!userModule)userModule = BDModules.get(e => e.default && e.default.getCurrentUser)[0]
if(!userModule)return React.createElement(classs, this.props)
let user = userModule.default.getCurrentUser()
if(!user.hasPremiumSubscription)return React.createElement(classs, this.props)
return React.createElement(classs, Object.assign({}, this.props, {
emojiDescriptors: this.props.emojiDescriptors.map(e => {
e.isDisabled = false
})
}))
}
}
EmojiPickerListRow.default.displayName = "EmojiPickerListRow"
})*/
}
disable(){