Closed Bug 998609 Opened 11 years ago Closed 11 years ago

Support topics in XMPP MUCs

Categories

(Chat Core :: XMPP, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clokep, Assigned: sawrubh)

References

()

Details

Attachments

(1 file, 1 obsolete file)

This is a pretty straightforward part of RFC 6121 part 5.2.4. Side note: I hate our XMPP XML API.
Attached patch Patch (obsolete) (deleted) — Splinter Review
Attachment #8409314 - Flags: review?(florian)
Comment on attachment 8409314 [details] [diff] [review] Patch Review of attachment 8409314 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for looking at our XMPP MUCs! :-) The specification for MUC topics is http://xmpp.org/extensions/xep-0045.html#enter-subject It says "In accordance with the core definition of XML stanzas, any message can contain a <subject/> element; only a message that contains a <subject/> but no <body/> element shall be considered a subject change for MUC purposes." Unless I missed something, I don't think your patch implements the "but no <body/>" part.
Attachment #8409314 - Flags: review?(florian) → review-
Unfortunately the server I've been using to test this doesn't seem to send the message with only a subject, it also contains a buddy (that says something like "foobar has set the topic to xyz".
Assignee: clokep → nobody
Status: ASSIGNED → NEW
(In reply to Patrick Cloke [:clokep] from comment #3) > Unfortunately the server I've been using to test this doesn't seem to send > the message with only a subject, it also contains a buddy (that says > something like "foobar has set the topic to xyz". You meant body, not buddy, right?
(In reply to Florian Quèze [:florian] [:flo] from comment #4) > (In reply to Patrick Cloke [:clokep] from comment #3) > > Unfortunately the server I've been using to test this doesn't seem to send > > the message with only a subject, it also contains a buddy (that says > > something like "foobar has set the topic to xyz". > > You meant body, not buddy, right? Yes, sorry. :)
Comment on attachment 8409314 [details] [diff] [review] Patch I changed my mind, it makes sense to match the behavior libpurple has, as doing something different could be perceived as a regression once we switch JS-XMPP on. Here is what libpurple does: http://lxr.instantbird.org/instantbird/source/purple/libpurple/protocols/jabber/message.c#219 I'm wondering if to exactly match we shouldn't move the "muc.incomingMessage(body, aStanza, date);" line after the topic handling.
Attachment #8409314 - Flags: review- → review+
(In reply to Florian Quèze [:florian] [:flo] from comment #6) > Comment on attachment 8409314 [details] [diff] [review] > Patch > > I changed my mind, it makes sense to match the behavior libpurple has, as > doing something different could be perceived as a regression once we switch > JS-XMPP on. > > Here is what libpurple does: > http://lxr.instantbird.org/instantbird/source/purple/libpurple/protocols/ > jabber/message.c#219 > > I'm wondering if to exactly match we shouldn't move the > "muc.incomingMessage(body, aStanza, date);" line after the topic handling. I can take a look at doing that.
Assignee: nobody → clokep
sawrubh, can you look at making the changes Florian requested here? Review can go back to me or him. Thanks!
Assignee: clokep → saurabhanandiit
Attached patch Patch(v1) (deleted) — Splinter Review
So there can be multiple subject elements with different xml:lang's according to the RFC while there is no such mention in the XEP. What should be abide by?
Attachment #8409314 - Attachment is obsolete: true
Attachment #8423362 - Flags: review?(florian)
Attachment #8423362 - Flags: review?(florian) → review+
Thanks for fixing this up! https://hg.mozilla.org/comm-central/rev/23794caa2fd4 Could you please file any follow up bugs you found?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: