BaseMessage
- Added decoding support for `SEND_CHANNEL_MESG_REP` and compacted
This commit is contained in:
parent
ad9c01f490
commit
2d1db7b1ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue