From f00d0f6d3d5108c0527011ba7412274e9b03a646 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 19 Feb 2019 12:09:01 +0100 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index a913f2c7ea..d53ee621b7 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -3,7 +3,7 @@ class EditUsers { getName () {return "EditUsers";} - getVersion () {return "3.2.6";} + getVersion () {return "3.2.7";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class EditUsers { initConstructor () { this.changelog = { - "improved":[["Affected Elements","Names/Avatars will also now be changed in the member/invite/ban overview in the guildsettings"]] + "improved":[["Affected Elements","Avatar in the ScreenShare popout is also now changed"]] }; this.labels = {}; @@ -27,6 +27,7 @@ class EditUsers { "MessageUsername":"componentDidMount", "DirectMessage":"componentDidMount", "CallAvatar":"componentDidMount", + "PictureInPictureVideo":"componentDidMount", "PrivateChannel":["componentDidMount","componentDidUpdate"], "HeaderBar":["componentDidMount","componentDidUpdate"], "Clickable":"componentDidMount", @@ -584,6 +585,14 @@ class EditUsers { } } + processPictureInPictureVideo (instance, wrapper) { + console.log(instance); + if (instance.props && instance.props.backgroundKey) { + let user = this.UserUtils.getUser(instance.props.backgroundKey); + if (user) this.changeAvatar(user, this.getAvatarDiv(wrapper)); + } + } + processPrivateChannel (instance, wrapper) { if (instance.props && instance.props.user) { let username = wrapper.querySelector(BDFDB.dotCN.dmchannelname);