Added missing sub-type to "New message" notification type

This commit is contained in:
Tristan B. Kildaire 2021-01-28 15:21:23 +02:00
parent fe2aef4c41
commit 32b3ca7661
1 changed files with 4 additions and 1 deletions

View File

@ -917,9 +917,12 @@ public class DConnection : Thread
/* The protocol data to send */
byte[] protocolData;
/* Set the sub-type (ntype=0) */
/* Set the sub-type (ntype=0 / channel/directmessage) */
protocolData ~= [0];
/* Set to user message (direct message, sub-sub-type) */
protocolData ~= [1];
/* Encode the sender's length */
protocolData ~= [cast(byte)username.length];