GetStream/stream-chat-java

Language is always UNKNOWN

samuelmasuebbc opened this issue · 0 comments

The user's language is always deserialized to UNKNOWN.

Steps to reproduce:

// First create a user with a valid language
var user = UserRequestObject.builder()
                                .id("user_id")
                                .name("username")
                                .role("admin")
                                .language(Language.FR)
                                .build()
User.upsert().user(user).request();

//  And then query this user
UserListResponse response = User.list()
                                           .filterCondition("id", "my_user))
                                           .request();
// in the response the language is UNKNOWN

The issue is located in this line