stores the id of the selected user
const state = app.getState();
state.$observe("userId", id => {
if(id) {
webix.message("The user id is " + id);
}
});
The property stores the id of the selected user in the "users" list (the user id in the selected private chat). It is a read-only property and can be accessed via the state object of the app.