Closed
Bug 998609
Opened 11 years ago
Closed 11 years ago
Support topics in XMPP MUCs
Categories
(Chat Core :: XMPP, enhancement)
Chat Core
XMPP
Tracking
(Not tracked)
RESOLVED
FIXED
1.6
People
(Reporter: clokep, Assigned: sawrubh)
References
()
Details
Attachments
(1 file, 1 obsolete file)
1.38 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
This is a pretty straightforward part of RFC 6121 part 5.2.4.
Side note: I hate our XMPP XML API.
Reporter | ||
Comment 1•11 years ago
|
||
Attachment #8409314 -
Flags: review?(florian)
Comment 2•11 years ago
|
||
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-
Reporter | ||
Comment 3•11 years ago
|
||
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
Comment 4•11 years ago
|
||
(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?
Reporter | ||
Comment 5•11 years ago
|
||
(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 6•11 years ago
|
||
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+
Reporter | ||
Comment 7•11 years ago
|
||
(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
Reporter | ||
Comment 8•11 years ago
|
||
sawrubh, can you look at making the changes Florian requested here? Review can go back to me or him. Thanks!
Assignee: clokep → saurabhanandiit
Assignee | ||
Comment 9•11 years ago
|
||
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)
Updated•11 years ago
|
Attachment #8423362 -
Flags: review?(florian) → review+
Reporter | ||
Comment 10•11 years ago
|
||
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.
Description
•