Fix cross typing.
This commit is contained in:
parent
e48b2258e0
commit
a0cd39e3bc
@ -169,7 +169,7 @@ app.ws.addEventListener("starfield.render_word", (data) => {
|
|||||||
app.addEventListener("channel-message", (data) => {
|
app.addEventListener("channel-message", (data) => {
|
||||||
|
|
||||||
let display = data.text && data.text.trim() ? 'block' : 'none';
|
let display = data.text && data.text.trim() ? 'block' : 'none';
|
||||||
if(data.is_final){
|
|
||||||
if (data.channel_uid !== channelUid) {
|
if (data.channel_uid !== channelUid) {
|
||||||
if (!isMentionForSomeoneElse(data.message)) {
|
if (!isMentionForSomeoneElse(data.message)) {
|
||||||
channelSidebar.notify(data);
|
channelSidebar.notify(data);
|
||||||
@ -184,7 +184,6 @@ app.addEventListener("channel-message", (data) => {
|
|||||||
app.playSound("message");
|
app.playSound("message");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
const lastElement = messagesContainer.querySelector(".message-list-bottom");
|
const lastElement = messagesContainer.querySelector(".message-list-bottom");
|
||||||
const doScrollDown = messagesContainer.isScrolledToBottom();
|
const doScrollDown = messagesContainer.isScrolledToBottom();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user