Smack 4.2.0 bug with ChatStateManager

Hi i am developing android android app, i want to know user input notification, so i used

    editor.addTextChangedListener(new TextWatcher() {
        @Override
        public void beforeTextChanged(CharSequence s, int start, int count, int after) {

        }

        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
                ChatStateManager.getInstance(conn1).setCurrentState(ChatState.composing,chatObj);
        }

        @Override
        public void afterTextChanged(Editable s) {

        }
    });

      

but it only accepts the legacy chat object and not the newer version of ChatObject according to smack 4.2.0 and according to smack documentation. ChatStateManger is not deprecated. Does anyone know how to fix this, or did anyone use ChatState with version 4.2.0. thanks in advance

+3


source to share


1 answer


ChatStateManager in Smack 4.2 uses the legacy chat API. Smack 4.3 will use the new API .



0


source







All Articles