BaseMessage

- Added decoding support for `SEND_CHANNEL_MESG_REP` and compacted
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-21 14:00:27 +02:00
parent ad9c01f490
commit 2d1db7b1ef
1 changed files with 5 additions and 6 deletions

View File

@ -154,12 +154,11 @@ public class BaseMessage
import davinci.c2s.channels : ChannelEnumerateReply;
message.command = Command.decodeTo!(ChannelEnumerateReply)(payload);
}
else if(message.commandType == CommandType.CHANNEL_SEND_MESSAGE)
{
import davinci.c2s.channels : ChannelMessage;
message.command = Command.decodeTo!(ChannelMessage)(payload);
}
else if(message.commandType == CommandType.CHANNEL_NEW_MESSAGE)
else if(
message.commandType == CommandType.CHANNEL_NEW_MESSAGE ||
message.commandType == CommandType.CHANNEL_SEND_MESSAGE ||
message.commandType == CommandType.SEND_CHANNEL_MESG_REP
)
{
import davinci.c2s.channels : ChannelMessage;
message.command = Command.decodeTo!(ChannelMessage)(payload);