Connection

- Handle message sending
- Set the status to delivered
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-21 14:11:17 +02:00
parent 0096b7d4ac
commit b120ba19e4
1 changed files with 5 additions and 0 deletions

View File

@ -289,7 +289,12 @@ public class Connection : Thread
mesgMan.sendq(message);
}
// TODO: Set this ONLY if we succeeeded in delivery
chanMesg.messageDelivered();
mType = MessageType.CLIENT_TO_SERVER;
responseType = CommandType.SEND_CHANNEL_MESG_REP;
responseCommand = chanMesg;
}
// Unsupported type for server
else