Summary: | Jabber groupchat history is only shown for currently present members | ||
---|---|---|---|
Product: | [Applications] kopete | Reporter: | Raymond Lewis Rebbeck <dystopianray> |
Component: | Jabber Plugin | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Fixes jabber groupchat history |
Description
Raymond Lewis Rebbeck
2006-10-06 18:11:24 UTC
This issue is still occurring in 0.12.3 and I just happened to look at .xsession-errors recently and noticed that whenever I enter a jabber groupchat there is a large number of warnings printed like the following: kopete (jabber): WARNING: [virtual void JabberGroupContact::handleIncomingMessage(const XMPP::Message&)] the contact is not in the list : lounge@rooms.jabber.org.au/Clax kopete (jabber): WARNING: [virtual void JabberGroupContact::handleIncomingMessage(const XMPP::Message&)] the contact is not in the list : lounge@rooms.jabber.org.au/Aleksiss These messages come from the jabber groupchat history and are being ignored by kopete because the users are not currently in the room. After some investigation I discovered that all the code to do want I want is there and works, however somehow an erroneous 'return' was placed directly before that code so the messages were never seen. Perhaps there was a reason to skip the code, a memory leak or other issues, I don't know. Removing the return statement brings back the old behaviour and jabber groupchat history is once again working as it should. I will attach a patch. Created attachment 18872 [details]
Fixes jabber groupchat history
SVN commit 667758 by mattr: commit patch from bug 135211 to fix that bug. Show all contacts history for jabber groupchats. Thanks for the patch! BUG: 135211 M +1 -1 jabbergroupcontact.cpp --- branches/KDE/3.5/kdenetwork/kopete/protocols/jabber/jabbergroupcontact.cpp #667757:667758 @@ -181,7 +181,7 @@ if ( !subContact ) { kdWarning (JABBER_DEBUG_GLOBAL) << k_funcinfo << "the contact is not in the list : " << message.from().full()<< endl; - return; + /** * We couldn't find the contact for this message. That most likely means * that it originated from a history backlog or something similar and |