Observable < ComapiResult < Void > > doIsTyping ( @ NonNull final String token , @ NonNull final String conversationId , final boolean isTyping ) { if ( isTyping ) { return wrapObservable ( service . isTyping ( AuthManager . addAuthPrefix ( token ) , apiSpaceId , conversationId ) . map ( mapToComapiResult ( ) ) , log , "Sending is typing." ) ; } else { return wrapObservable ( service . isNotTyping ( AuthManager . addAuthPrefix ( token ) , apiSpaceId , conversationId ) . map ( mapToComapiResult ( ) ) , log , "Sending is not typing" ) ; } }
Send information if user started or stopped typing message in a conversation .