Update PinDMs.plugin.js
This commit is contained in:
parent
21e762a984
commit
ad99613a59
|
@ -311,6 +311,7 @@ class PinDMs {
|
||||||
processPrivateChannel (instance, wrapper) {
|
processPrivateChannel (instance, wrapper) {
|
||||||
if (instance && instance.props && instance.props.ispin) {
|
if (instance && instance.props && instance.props.ispin) {
|
||||||
let id = BDFDB.getReactValue(instance, "props.channel.id");
|
let id = BDFDB.getReactValue(instance, "props.channel.id");
|
||||||
|
wrapper.setAttribute("channelid", id);
|
||||||
BDFDB.addClass(wrapper, "pinned");
|
BDFDB.addClass(wrapper, "pinned");
|
||||||
BDFDB.removeClass(BDFDB.getChannelDiv(id), BDFDB.disCN.dmchannelselected);
|
BDFDB.removeClass(BDFDB.getChannelDiv(id), BDFDB.disCN.dmchannelselected);
|
||||||
wrapper.querySelector("a").setAttribute("draggable", false);
|
wrapper.querySelector("a").setAttribute("draggable", false);
|
||||||
|
|
Loading…
Reference in New Issue