From f750497018c9802cb483fd94f09e55c0a7dda291 Mon Sep 17 00:00:00 2001 From: HF Date: Sun, 14 Aug 2022 14:02:32 +0200 Subject: [PATCH] minor fixes --- src/client.js | 6 +++--- src/store/actions/index.js | 1 - src/styles/default.css | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.js b/src/client.js index 3aed96e..953d6a7 100644 --- a/src/client.js +++ b/src/client.js @@ -56,7 +56,6 @@ function init() { userId, ) => { const state = store.getState(); - const { nameRegExp } = state.user; // assume that if one chat window is not hidden, all are let isRead = state.windows.showWindows @@ -68,14 +67,15 @@ function init() { && state.windows.args[0].chatChannel === channelId; // TODO ping doesn't work since update - const isPing = (nameRegExp && text.match(nameRegExp)); + // const { nameRegExp } = state.user; + // const isPing = (nameRegExp && text.match(nameRegExp)); store.dispatch(receiveChatMessage( name, text, country, channelId, userId, - isPing, + false, !!isRead, )); }); diff --git a/src/store/actions/index.js b/src/store/actions/index.js index 8c94408..60e1ec6 100644 --- a/src/store/actions/index.js +++ b/src/store/actions/index.js @@ -769,7 +769,6 @@ export function unmuteChatChannel(cid) { export function addToChatInputMessage(windowId, msg, focus = true) { return (dispatch, getState) => { const args = getState().windows.args[windowId]; - console.log(getState().windows.args, args); let inputMessage = args && args.inputMessage; if (!inputMessage) { inputMessage = ''; diff --git a/src/styles/default.css b/src/styles/default.css index 893d931..63d9d9c 100644 --- a/src/styles/default.css +++ b/src/styles/default.css @@ -692,7 +692,6 @@ tr:nth-child(even) { max-width: 95px; overflow: hidden; vertical-align: bottom; - font-size: smaller; background-color: #ebf2f9; } .mention, .ping {