Summary | ChatStateFilter problem |
Queue | gloox |
Queue Version | SVN |
Type | Bug |
State | Unconfirmed |
Priority | 2. Medium |
Owners | |
Requester | euroelessar (at) ya (dot) ru |
Created | 05/27/2010 (4944 days ago) |
Due | |
Updated | 03/13/2015 (3193 days ago) |
Assigned | |
Resolved |
http://xmpp.org/extensions/xep-0085.html
to ignore it comment
m_enableChatStates = (state->state() != ChatStateInvalid);
< m_enableChatStates = state && state->state() != ChatStateInvalid;
---
return;
m_enableChatStates = (state->state() != ChatStateInvalid);
State ⇒ Unconfirmed
Queue ⇒ gloox
Summary ⇒ ChatStateFilter problem
Type ⇒ Bug
Priority ⇒ 2. Medium
xml:lang='ru' id='uid:4bfee8d7:4c569893' type='chat'>
<received xmlns='urn:xmpp:receipts'/>
</message>
is wrong. This receipt answer was prepared inside of
MessageFilter::filter method and sended by invoking method
"MessageSession::send", so message wasn't decorated by other Filter's.
There are two ways for resolving this problem:
1. Doesn't change ChatStateFilter::m_enableChatStates if message has
empty body
2. Call decorate for messages, sent from MessageFilter
I think first way is more acceptable