minor fixes
This commit is contained in:
parent
f3e6333982
commit
f750497018
|
@ -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,
|
||||
));
|
||||
});
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -692,7 +692,6 @@ tr:nth-child(even) {
|
|||
max-width: 95px;
|
||||
overflow: hidden;
|
||||
vertical-align: bottom;
|
||||
font-size: smaller;
|
||||
background-color: #ebf2f9;
|
||||
}
|
||||
.mention, .ping {
|
||||
|
|
Loading…
Reference in New Issue
Block a user