This commit is contained in:
parent
e9de72b059
commit
ecc1799951
File diff suppressed because one or more lines are too long
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue