5.2.23
09/22/2023

[#185] MUCRoomHandler doesn't receive private messages
Summary MUCRoomHandler doesn't receive private messages
Queue gloox
Queue Version 1.0
Type Bug
State Unconfirmed
Priority 1. Low
Owners
Requester alexfav619 (at) gmail (dot) com
Created 07/21/2010 (4811 days ago)
Due
Updated
Assigned
Resolved

History
07/21/2010 10:34:56 PM alexfav619 (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ MUCRoomHandler doesn't receive private messages
Queue ⇒ gloox
Reply to this comment
handleMUCMessage is never called for private messages (i.e. messages 
sent via a MessageSession with the participants full room JID)

As far as I can tell the problem originates in ClientBase. To my 
understanding MUCMessageSessions do not honor thread IDs so they 
should receive messages regardless of their thread, but in 
ClientBase::notifyMessageHandlers() handleMessage() was called for 
sessions for which honorThreadID() returned true, regardless of the 
messages thread ID.

Negating the appropriate boolean value fixed the problem for me
( if ( ... !messageSession->honorThreadID() ... ) 
messageSession->handleMessage(msg) )