Summary: | wrong html-tag formatting when sending messages | ||
---|---|---|---|
Product: | [Applications] kopete | Reporter: | mario <dh1pa> |
Component: | Jabber Plugin | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
mario
2003-07-03 17:23:30 UTC
Are you sending messages using the jabber plugin or the ICQ plugin? I don't understand, since it appears that parts of your bug report are missing. Please provide some more information or this bug report will more than likely be closed. Yes, there are parts missing...(and I don't know why) console output is: kopete: [JabberAccount] Psi: Client: outgoing: [ <message type="chat" to="95723948@jit.jabber.fsinf.de" > <body>test<br/>test</body> </message> ] It seems to be a jabber-issue, as I currently can't reproduce it using other protocol plugins like ICQ or AIM. Hope that helps a bit. I can confirm this, I'll be working on it. Subject: kdenonbeta/kopete/protocols/jabber CVS commit by gerken: Messages are now explicitely sent as plain text. Incoming messages are treated as plain text as well. RichText/XHTML support is on the TODO list. CCMAIL: 60700-done@bugs.kde.org M +1 -1 TODO 1.36 M +1 -1 jabberaccount.cpp 1.36 M +4 -3 jabbercontact.cpp 1.133 --- kdenonbeta/kopete/protocols/jabber/TODO #1.35:1.36 @@ -24,5 +24,5 @@ - should the away dialog pop up when going away using the account context menu? - add canSendOffline() to JabberProtocol -- messages contain HTML-like tags (bug 60700) - verify FIXMEs in JabberContact - save "auto connect" in account preferences +- support XHTML message types --- kdenonbeta/kopete/protocols/jabber/jabberaccount.cpp #1.35:1.36 @@ -825,5 +825,5 @@ void JabberAccount::slotSubscription (co /* If it is not, ask the user if he wants to subscribe in return. */ - if (!mc && (KMessageBox::questionYesNo (qApp->mainWidget (), + if ((!mc || mc->isTemporary()) && (KMessageBox::questionYesNo (qApp->mainWidget (), i18n ("Do you want to add %1 to your contact " --- kdenonbeta/kopete/protocols/jabber/jabbercontact.cpp #1.132:1.133 @@ -353,5 +353,5 @@ void JabberContact::km2jm (const KopeteM //jabMessage.setFrom(from->userId(); - jabMessage.setBody (km.parsedBody (), true); + jabMessage.setBody (km.plainBody (), true); jabMessage.setSubject (km.subject ()); @@ -382,6 +383,6 @@ void JabberContact::slotReceivedMessage // convert Jabber::Message into KopeteMessage - KopeteMessage newMessage (message.timeStamp (), - this, contactList, message.body (), message.subject (), KopeteMessage::Inbound, KopeteMessage::PlainText, type); + KopeteMessage newMessage (message.timeStamp (), this, contactList, message.body (), message.subject (), + KopeteMessage::Inbound, KopeteMessage::PlainText, type); // add it to the manager |