Re: ChatStateFilter requires an empty body
From: Rob Napier <rnapier@xxxxxxxxx>
Date: Mon, 4 Jan 2010 23:15:57 +0100 (CET)
Just following up on this. Is the restriction to msg.body().empty() done on 
purpose here?

-Rob

On Dec 10, 2009, at 7:47 PM, Rob Napier wrote:

> ChatStateFilter only calls handleChatState() if msg.body().empty():
> 
>       if( m_enableChatStates && msg.body().empty() )
>         m_chatStateHandler->handleChatState( msg.from(), state->state() );
> 
> While I can just set chat state back to Active any time a non-empty message 
> comes in, this seems an unnecessary special case in the code. Why the 
> msg.body().empty() test? Can this be removed?
> 
> -Rob
> -- 
> gloox-dev mailing list
> to unsubscribe:
> send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx