diff --git a/client/components/Mentions.vue b/client/components/Mentions.vue
index 8ee5688e..dddb0d42 100644
--- a/client/components/Mentions.vue
+++ b/client/components/Mentions.vue
@@ -10,10 +10,10 @@
Recent mentions
@@ -37,11 +37,14 @@
-
+
@@ -102,7 +105,7 @@
word-break: break-word; /* Webkit-specific */
}
-.mentions-popup .msg-hide::before {
+.mentions-popup .msg-dismiss::before {
font-size: 20px;
font-weight: normal;
display: inline-block;
@@ -111,11 +114,11 @@
content: "×";
}
-.mentions-popup .msg-hide:hover {
+.mentions-popup .msg-dismiss:hover {
color: var(--link-color);
}
-.mentions-popup .hide-all-mentions {
+.mentions-popup .dismiss-all-mentions {
margin: 0;
padding: 4px 6px;
}
@@ -191,17 +194,17 @@ export default {
messageTime(time) {
return dayjs(time).fromNow();
},
- hideMention(message) {
+ dismissMention(message) {
this.$store.state.mentions.splice(
this.$store.state.mentions.findIndex((m) => m.msgId === message.msgId),
1
);
- socket.emit("mentions:hide", message.msgId);
+ socket.emit("mentions:dismiss", message.msgId);
},
- hideAllMentions() {
+ dismissAllMentions() {
this.$store.state.mentions = [];
- socket.emit("mentions:hide_all");
+ socket.emit("mentions:dismiss_all");
},
containerClick(event) {
if (event.currentTarget === event.target) {
diff --git a/src/server.js b/src/server.js
index f50ee078..45548c7d 100644
--- a/src/server.js
+++ b/src/server.js
@@ -538,7 +538,7 @@ function initializeClient(socket, client, token, lastMessage, openChannel) {
socket.emit("mentions:list", client.mentions);
});
- socket.on("mentions:hide", (msgId) => {
+ socket.on("mentions:dismiss", (msgId) => {
if (typeof msgId !== "number") {
return;
}
@@ -549,7 +549,7 @@ function initializeClient(socket, client, token, lastMessage, openChannel) {
);
});
- socket.on("mentions:hide_all", () => {
+ socket.on("mentions:dismiss_all", () => {
client.mentions = [];
});