File tree Expand file tree Collapse file tree
main/java/io/getstream/chat/java/models
test/java/io/getstream/chat/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -427,6 +427,10 @@ public static class ConfigOverridesRequestObject {
427427 @ Nullable
428428 @ JsonProperty ("user_message_reminders" )
429429 private Boolean userMessageReminders ;
430+
431+ @ Nullable
432+ @ JsonProperty ("shared_locations" )
433+ private Boolean sharedLocations ;
430434 }
431435
432436 @ Builder
Original file line number Diff line number Diff line change 1313import java .text .ParseException ;
1414import java .text .SimpleDateFormat ;
1515import java .util .Date ;
16+ import java .util .HashMap ;
17+ import java .util .Map ;
1618import java .util .TimeZone ;
1719import java .util .UUID ;
1820import org .junit .jupiter .api .Assertions ;
21+ import org .junit .jupiter .api .BeforeAll ;
1922import org .junit .jupiter .api .DisplayName ;
2023import org .junit .jupiter .api .Test ;
2124
2225public class SharedLocationTest extends BasicTest {
2326
27+ @ BeforeAll
28+ static void setupSharedLocations () {
29+ Map <String , Object > configOverrides = new HashMap <>();
30+ configOverrides .put ("shared_locations" , true );
31+
32+ Assertions .assertDoesNotThrow (
33+ () ->
34+ Channel .partialUpdate (testChannel .getType (), testChannel .getId ())
35+ .setValue ("config_overrides" , configOverrides )
36+ .request ());
37+ }
38+
2439 @ DisplayName ("Can send message with shared location and verify" )
2540 @ Test
2641 void whenSendingMessageWithSharedLocation_thenCanGetThroughUsersLocations ()
You can’t perform that action at this time.
0 commit comments