We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be792a6 commit 58f848dCopy full SHA for 58f848d
MixchSitePlugin/Packet.cs
@@ -12,7 +12,7 @@ public class Packet
12
[JsonProperty("user_id")]
13
public int UserId
14
{
15
- get { return IsSystemMessage() ? 0 : _userId; }
+ get { return IsSystemMessage() || Anonymous == 1 ? 0 : _userId; }
16
set { _userId = value; }
17
}
18
private int _userId;
@@ -49,6 +49,9 @@ public string Name
49
[JsonProperty("status")]
50
public int Status { get; set; }
51
52
+ [JsonProperty("anonymous")]
53
+ public int Anonymous { get; set; }
54
+
55
public bool IsSystemMessage()
56
57
switch ((MixchMessageType)Kind)
0 commit comments