Compare commits

...

2 commits

Author SHA1 Message Date
rainbow napkin 23ad679473 Client-side PM Pre-processing complete. 2025-10-02 02:29:29 -04:00
rainbow napkin 57db26a827 Quick Cleanup 2025-10-01 21:41:49 -04:00
3 changed files with 14 additions and 11 deletions

View file

@ -20,11 +20,8 @@ const config = require('../../../config.json');
//Local Imports
const channelModel = require('../../schemas/channel/channelSchema');
const emoteModel = require('../../schemas/emoteSchema');
const {userModel} = require('../../schemas/user/userSchema');
const userBanModel = require('../../schemas/user/userBanSchema');
const socketUtils = require('../../utils/socketUtils');
const loggerUtils = require('../../utils/loggerUtils');
const csrfUtils = require('../../utils/csrfUtils');
const presenceUtils = require('../../utils/presenceUtils');
const activeChannel = require('./activeChannel');
const chatHandler = require('./chatHandler');

View file

@ -214,7 +214,7 @@ textarea{
text-shadow: var(--danger-glow0-alt1);
}
.positive-button{
.positive-button:not([disabled]){
background-color: var(--focus0);
color: white;
}

View file

@ -108,14 +108,20 @@ class pmPanel extends panelObj{
//Pull current sesh from sesh list
const sesh = this.client.pmHandler.seshList.get(this.activeSesh);
//Send message out to server
this.client.pmSocket.emit("pm", {
recipients: sesh.recipients,
msg: this.seshPrompt.value
});
//Preprocess message from prompt
const preprocessedMessage = this.client.chatBox.commandPreprocessor.preprocess(this.seshPrompt.value);
//Clear our prompt
this.seshPrompt.value = "";
//If preprocessedMessage had it's send flag thrown as false
if(preprocessedMessage != false){
//Stick recipients into the pre-processed message
preprocessedMessage.recipients = sesh.recipients;
//Send message out to server
this.client.pmSocket.emit("pm", preprocessedMessage);
}
//Clear our prompt
this.seshPrompt.value = "";
}
}