minor fixes

This commit is contained in:
HF 2022-08-14 14:02:32 +02:00
parent f3e6333982
commit f750497018
3 changed files with 3 additions and 5 deletions

View File

@ -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,
));
});

View File

@ -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 = '';

View File

@ -692,7 +692,6 @@ tr:nth-child(even) {
max-width: 95px;
overflow: hidden;
vertical-align: bottom;
font-size: smaller;
background-color: #ebf2f9;
}
.mention, .ping {