Update EditUsers.plugin.js
This commit is contained in:
parent
b717f474ec
commit
e1c81d44b4
|
@ -636,7 +636,7 @@ class EditUsers {
|
|||
}
|
||||
|
||||
processHeaderBar (instance, wrapper) {
|
||||
let channel_id = BDFDB.getReactValue(instance, "_reactInternalFiber.return.memoizedProps.channelId");
|
||||
let channel_id = BDFDB.getReactValue(instance, "props.channelId") || BDFDB.getReactValue(instance, "_reactInternalFiber.return.memoizedProps.channelId");
|
||||
if (channel_id) {
|
||||
let username = wrapper.querySelector(BDFDB.dotCN.channelheaderheaderbartitle);
|
||||
username = username && username.firstElementChild ? wrapper.querySelector(BDFDB.dotCN.channelheaderchannelname) : username;
|
||||
|
|
Loading…
Reference in New Issue