diff --git a/res/css/structures/_RightPanel.scss b/res/css/structures/_RightPanel.scss
index 554aabfcd1..b4dff612ed 100644
--- a/res/css/structures/_RightPanel.scss
+++ b/res/css/structures/_RightPanel.scss
@@ -55,10 +55,6 @@ limitations under the License.
padding-bottom: 3px;
}
-.mx_RightPanel_headerButton_badgeHighlight .mx_RightPanel_headerButton_badge {
- color: $warning-color;
-}
-
.mx_RightPanel_headerButton_highlight {
width: 25px;
height: 5px;
diff --git a/src/Notifier.js b/src/Notifier.js
index 8550f3bf95..80e8be1084 100644
--- a/src/Notifier.js
+++ b/src/Notifier.js
@@ -289,11 +289,6 @@ const Notifier = {
const room = MatrixClientPeg.get().getRoom(ev.getRoomId());
const actions = MatrixClientPeg.get().getPushActionsForEvent(ev);
if (actions && actions.notify) {
- dis.dispatch({
- action: "event_notification",
- event: ev,
- room: room,
- });
if (this.isEnabled()) {
this._displayPopupNotification(ev, room);
}
diff --git a/src/Tinter.js b/src/Tinter.js
index 9c2afd4fab..d24a4c3e74 100644
--- a/src/Tinter.js
+++ b/src/Tinter.js
@@ -390,7 +390,7 @@ class Tinter {
// XXX: we could just move this all into TintableSvg, but as it's so similar
// to the CSS fixup stuff in Tinter (just that the fixups are stored in TintableSvg)
// keeping it here for now.
- calcSvgFixups(svgs, forceColors) {
+ calcSvgFixups(svgs) {
// go through manually fixing up SVG colours.
// we could do this by stylesheets, but keeping the stylesheets
// updated would be a PITA, so just brute-force search for the
@@ -418,21 +418,13 @@ class Tinter {
const tag = tags[j];
for (let k = 0; k < this.svgAttrs.length; k++) {
const attr = this.svgAttrs[k];
- for (let m = 0; m < this.keyHex.length; m++) { // dev note: don't use L please.
- // We use a different attribute from the one we're setting
- // because we may also be using forceColors. If we were to
- // check the keyHex against a forceColors value, it may not
- // match and therefore not change when we need it to.
- const valAttrName = "mx-val-" + attr;
- let attribute = tag.getAttribute(valAttrName);
- if (!attribute) attribute = tag.getAttribute(attr); // fall back to the original
- if (attribute && (attribute.toUpperCase() === this.keyHex[m] || attribute.toLowerCase() === this.keyRgb[m])) {
+ for (let l = 0; l < this.keyHex.length; l++) {
+ if (tag.getAttribute(attr) &&
+ tag.getAttribute(attr).toUpperCase() === this.keyHex[l]) {
fixups.push({
node: tag,
attr: attr,
- refAttr: valAttrName,
- index: m,
- forceColors: forceColors,
+ index: l,
});
}
}
@@ -448,9 +440,7 @@ class Tinter {
if (DEBUG) console.log("applySvgFixups start for " + fixups);
for (let i = 0; i < fixups.length; i++) {
const svgFixup = fixups[i];
- const forcedColor = svgFixup.forceColors ? svgFixup.forceColors[svgFixup.index] : null;
- svgFixup.node.setAttribute(svgFixup.attr, forcedColor ? forcedColor : this.colors[svgFixup.index]);
- svgFixup.node.setAttribute(svgFixup.refAttr, this.colors[svgFixup.index]);
+ svgFixup.node.setAttribute(svgFixup.attr, this.colors[svgFixup.index]);
}
if (DEBUG) console.log("applySvgFixups end");
}
diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js
index e8371697f2..9017447a34 100644
--- a/src/components/structures/RightPanel.js
+++ b/src/components/structures/RightPanel.js
@@ -30,7 +30,6 @@ import { showGroupInviteDialog, showGroupAddRoomDialog } from '../../GroupAddres
import GroupStore from '../../stores/GroupStore';
import { formatCount } from '../../utils/FormattingUtils';
-import MatrixClientPeg from "../../MatrixClientPeg";
class HeaderButton extends React.Component {
constructor() {
@@ -50,26 +49,17 @@ class HeaderButton extends React.Component {
const TintableSvg = sdk.getComponent("elements.TintableSvg");
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
- // XXX: We really shouldn't be hardcoding colors here, but the way TintableSvg
- // works kinda prevents us from using normal CSS tactics. We use $warning-color
- // here.
- // Note: This array gets passed along to the Tinter's forceColors eventually.
- const tintableColors = this.props.badgeHighlight ? ["#ff0064"] : null;
-
- const classNames = ["mx_RightPanel_headerButton"];
- if (this.props.badgeHighlight) classNames.push("mx_RightPanel_headerButton_badgeHighlight");
-
return