Closed Bug 1146122 Opened 9 years ago Closed 9 years ago

Handle response stanza to _sendPresence

Categories

(Chat Core :: XMPP, defect)

x86
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aleth, Assigned: abdelrahman)

Details

Attachments

(1 file, 1 obsolete file)

With the improved warnings added in bug 954960, it is apparent we don't handle the response presence stanza to the presence stanzas we send in _sendPresence.
Assignee: nobody → a.ahmed1026
Status: NEW → ASSIGNED
Attachment #8589897 - Flags: review?(aleth)
Comment on attachment 8589897 [details] [diff] [review]
rev 1 - Handle response to _sendPresence

Review of attachment 8589897 [details] [diff] [review]:
-----------------------------------------------------------------

::: chat/protocols/xmpp/xmpp.jsm
@@ +1542,5 @@
>        let priority = Math.max(-128, Math.min(127, this.getInt("priority")));
>        if (priority)
>          children.push(Stanza.node("priority", null, null, priority.toString()));
>      }
> +    this.sendStanza(Stanza.presence({"xml:lang": "en"}, children),

Please add a comment explaining the handler (something like "As we are implicitly subscribed to our own presence (rfc...), we will receive the presence stanza mirrored back to us. We don't need to do anything with this response."
r+ with the added comment.
Attachment #8589897 - Flags: review?(aleth) → feedback+
Attachment #8589897 - Attachment is obsolete: true
Attachment #8596941 - Flags: review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
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: