Skip to content

Commit e5c358c

Browse files
authored
feat: remove filterTags from channel batch update API (#242)
* feat: remove filterTags from channel batch update API * spotless
1 parent 61228e0 commit e5c358c

File tree

2 files changed

+1
-47
lines changed

2 files changed

+1
-47
lines changed

src/main/java/io/getstream/chat/java/models/Channel.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,11 +1919,7 @@ public enum ChannelBatchOperation {
19191919
@JsonProperty("unarchive")
19201920
UNARCHIVE,
19211921
@JsonProperty("updateData")
1922-
UPDATE_DATA,
1923-
@JsonProperty("addFilterTags")
1924-
ADD_FILTER_TAGS,
1925-
@JsonProperty("removeFilterTags")
1926-
REMOVE_FILTER_TAGS
1922+
UPDATE_DATA
19271923
}
19281924

19291925
/** Represents a member in batch operations */
@@ -1985,10 +1981,6 @@ public static class ChannelsBatchFilters {
19851981
@Nullable
19861982
@JsonProperty("types")
19871983
private Object types;
1988-
1989-
@Nullable
1990-
@JsonProperty("filter_tags")
1991-
private Object filterTags;
19921984
}
19931985

19941986
/** Represents options for batch channel updates */
@@ -2010,10 +2002,6 @@ public static class ChannelsBatchOptions {
20102002
@Nullable
20112003
@JsonProperty("data")
20122004
private ChannelDataUpdate data;
2013-
2014-
@Nullable
2015-
@JsonProperty("filter_tags_update")
2016-
private List<String> filterTagsUpdate;
20172005
}
20182006

20192007
@Getter

src/main/java/io/getstream/chat/java/models/ChannelBatchUpdater.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -194,38 +194,4 @@ public ChannelsBatchUpdateRequest updateData(
194194
options.setData(data);
195195
return Channel.updateBatch(options);
196196
}
197-
198-
/**
199-
* Adds filter tags to channels matching the filter.
200-
*
201-
* @param filter the filter to match channels
202-
* @param tags list of filter tags to add
203-
* @return the batch update request
204-
*/
205-
@NotNull
206-
public ChannelsBatchUpdateRequest addFilterTags(
207-
@NotNull ChannelsBatchFilters filter, @NotNull List<String> tags) {
208-
ChannelsBatchOptions options = new ChannelsBatchOptions();
209-
options.setOperation(ChannelBatchOperation.ADD_FILTER_TAGS);
210-
options.setFilter(filter);
211-
options.setFilterTagsUpdate(tags != null ? new ArrayList<>(tags) : null);
212-
return Channel.updateBatch(options);
213-
}
214-
215-
/**
216-
* Removes filter tags from channels matching the filter.
217-
*
218-
* @param filter the filter to match channels
219-
* @param tags list of filter tags to remove
220-
* @return the batch update request
221-
*/
222-
@NotNull
223-
public ChannelsBatchUpdateRequest removeFilterTags(
224-
@NotNull ChannelsBatchFilters filter, @NotNull List<String> tags) {
225-
ChannelsBatchOptions options = new ChannelsBatchOptions();
226-
options.setOperation(ChannelBatchOperation.REMOVE_FILTER_TAGS);
227-
options.setFilter(filter);
228-
options.setFilterTagsUpdate(tags != null ? new ArrayList<>(tags) : null);
229-
return Channel.updateBatch(options);
230-
}
231197
}

0 commit comments

Comments
 (0)