Update PinDMs.plugin.js

This commit is contained in:
Mirco Wittrien 2019-02-12 13:19:45 +01:00
parent 21e762a984
commit ad99613a59
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ class PinDMs {
processPrivateChannel (instance, wrapper) {
if (instance && instance.props && instance.props.ispin) {
let id = BDFDB.getReactValue(instance, "props.channel.id");
wrapper.setAttribute("channelid", id);
BDFDB.addClass(wrapper, "pinned");
BDFDB.removeClass(BDFDB.getChannelDiv(id), BDFDB.disCN.dmchannelselected);
wrapper.querySelector("a").setAttribute("draggable", false);