diff --git a/src/main/java/io/getstream/chat/java/models/Channel.java b/src/main/java/io/getstream/chat/java/models/Channel.java index ce0227ce..421ab57a 100644 --- a/src/main/java/io/getstream/chat/java/models/Channel.java +++ b/src/main/java/io/getstream/chat/java/models/Channel.java @@ -99,6 +99,14 @@ public class Channel { @JsonProperty("last_message_at") private Date lastMessageAt; + @NotNull + @JsonProperty("truncated_by_id") + private String truncatedById; + + @NotNull + @JsonProperty("truncated_by") + private User truncatedBy; + @NotNull @JsonIgnore private Map additionalFields = new HashMap<>(); @JsonAnyGetter @@ -678,6 +686,14 @@ public static class ChannelTruncateRequestData { @JsonProperty("message") private MessageRequestObject message; + @Nullable + @JsonProperty("user_id") + private String userId; + + @Nullable + @JsonProperty("user") + private UserRequestObject user; + public static class ChannelTruncateRequest extends StreamRequest { @NotNull private String channelType;