Base implementation of PM back-end started.

This commit is contained in:
rainbow napkin 2025-09-19 03:47:19 -04:00
parent 7da07c8717
commit 67edef9035
5 changed files with 182 additions and 12 deletions

View file

@ -20,20 +20,20 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
class message{
/**
* Instantiates a chat message object
* @param {connectedUser} sender - User who sent the message
* @param {Array} recipients - Array of connected users who are supposed to receive the message
* @param {String} sender - Name of user who sent the message
* @param {Array} recipients - Array of usernames who are supposed to receive the message
* @param {String} msg - Contents of the message, with links replaced with numbered file-seperator markers
* @param {Array} links - Array of URLs/Links included in the message.
*/
constructor(sender, recipients, msg, links){
/**
* User who sent the message
* Name of user who sent the message
*/
this.sender = sender;
/**
* Array of strings containing usernames to send message to
* Array of usernames who are supposed to receive the message
*/
this.recipients = recipients;