fix
This commit is contained in:
parent
c73751ddee
commit
0c28def572
|
@ -4891,6 +4891,7 @@
|
||||||
callcurrentcontainer: ["CallCurrent", "wrapper"],
|
callcurrentcontainer: ["CallCurrent", "wrapper"],
|
||||||
callcurrentdetails: ["CallDetails", "container"],
|
callcurrentdetails: ["CallDetails", "container"],
|
||||||
callcurrentvideo: ["Video", "video"],
|
callcurrentvideo: ["Video", "video"],
|
||||||
|
callincomingicon: ["CallIncoming", "icon"],
|
||||||
callincomingroot: ["CallIncoming", "root"],
|
callincomingroot: ["CallIncoming", "root"],
|
||||||
callincomingtitle: ["CallIncoming", "title"],
|
callincomingtitle: ["CallIncoming", "title"],
|
||||||
callincomingwrapper: ["CallIncoming", "wrapper"],
|
callincomingwrapper: ["CallIncoming", "wrapper"],
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69,7 +69,7 @@ var NotificationSounds = (_ => {
|
||||||
return class NotificationSounds {
|
return class NotificationSounds {
|
||||||
getName () {return "NotificationSounds";}
|
getName () {return "NotificationSounds";}
|
||||||
|
|
||||||
getVersion () {return "3.4.6";}
|
getVersion () {return "3.4.7";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ var NotificationSounds = (_ => {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Song Deletion","You can now delete single songs, whole categories or all songs"]]
|
"improved":[["Incoming","Works again"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
|
@ -525,18 +525,24 @@ var NotificationSounds = (_ => {
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processShakeable (e) {
|
processShakeable (e) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "IncomingCalls"});
|
if (e.returnvalue && BDFDB.ArrayUtils.is(e.returnvalue.props.children)) {
|
||||||
if (index > -1) {
|
let child = e.returnvalue.props.children.find(n => {
|
||||||
if (repatchIncoming) {
|
let string = n && n.type && n.type.toString();
|
||||||
children[index] = null;
|
return string && string.indexOf("call_ringing_beat") > -1 && string.indexOf("call_ringing") > -1 && string.indexOf("hasIncomingCalls") > -1;
|
||||||
BDFDB.TimeUtils.timeout(_ => {
|
});
|
||||||
repatchIncoming = false;
|
if (child) {
|
||||||
BDFDB.ReactUtils.forceUpdate(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"App", up:true}))
|
let index = e.returnvalue.props.children.indexOf(child);
|
||||||
});
|
if (repatchIncoming) {
|
||||||
|
e.returnvalue.props.children[index] = null;
|
||||||
|
BDFDB.TimeUtils.timeout(_ => {
|
||||||
|
repatchIncoming = false;
|
||||||
|
BDFDB.ReactUtils.forceUpdate(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"App", up:true}))
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else e.returnvalue.props.children[index] = BDFDB.ReactUtils.createElement(e.returnvalue.props.children[index].type, {});
|
||||||
}
|
}
|
||||||
else children[index] = BDFDB.ReactUtils.createElement(children[index].type, {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue