This commit is contained in:
Jean Ouina 2020-06-13 15:47:30 +02:00
parent 9b6f78acaa
commit 54a3af8769
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -700,7 +700,7 @@ let StatusModules
class Status extends React.Component { class Status extends React.Component {
get modules(){ get modules(){
return StatusModules || (StatusModules = [ return StatusModules || (StatusModules = [
BDModules.get(e => e.default && e.default.getPresence)[0].default.getPresence, BDModules.get(e => e.default && e.default.getPresence)[0],
BDModules.get(e => e.pointerEvents)[0].pointerEvents BDModules.get(e => e.pointerEvents)[0].pointerEvents
]) ])
} }
@ -710,7 +710,7 @@ class Status extends React.Component {
getPresence, getPresence,
pointerEvents pointerEvents
] = this.modules ] = this.modules
let status = getPresence().status let status = getPresence.default.getPresence().status
if(status === "invisible")status = "offline" if(status === "invisible")status = "offline"
return <rect width="16" height="16" x="60" y="60" fill="#ffffff" mask={`url(#svg-mask-status-${status})`} className={pointerEvents}></rect> return <rect width="16" height="16" x="60" y="60" fill="#ffffff" mask={`url(#svg-mask-status-${status})`} className={pointerEvents}></rect>
} }