Strip last character from ACTION messages
This commit is contained in:
parent
007dd3fe63
commit
52f929ec45
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@ function addMessage(state, message) {
|
|||||||
const from = message.from;
|
const from = message.from;
|
||||||
message.from = null;
|
message.from = null;
|
||||||
message.type = 'action';
|
message.type = 'action';
|
||||||
message.message = from + message.message.slice(7);
|
message.message = from + message.message.slice(7, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return state.updateIn([message.server, message.dest], List(),
|
return state.updateIn([message.server, message.dest], List(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user