Closed Bug 955910 Opened 10 years ago Closed 10 years ago

Conference room numbers jump two values

Categories

(Chat Core :: Yahoo! Messenger, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: qheaden, Assigned: qheaden)

Details

Attachments

(1 file, 1 obsolete file)

When creating conference rooms using JS-Yahoo, the conference room numbers are 1, 3, 5, etc. They need to only jump one value at a time.
Attached patch Patch 1 (obsolete) — Splinter Review
This patch fixes the issue of conference room numbers. I removed one of the increment statements that was double incrementing the numbers.
Assignee: nobody → qheaden
Status: NEW → ASSIGNED
Attachment #8360829 - Flags: review?(clokep)
Comment on attachment 8360829 [details] [diff] [review]
Patch 1

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

I'm glad this was so simple to figure out! I just have one small nit.

::: chat/protocols/yahoo/yahoo.js
@@ +459,5 @@
>    get canJoinChat() true,
>    chatRoomFields: {},
>    joinChat: function(aComponents) {
> +    // Use _roomsCreated to append a unique number to the room name.
> +    this._roomsCreated++;

Nit: ++this._roomsCreated;
Attachment #8360829 - Flags: review?(clokep) → review-
Attached patch Patch 2Splinter Review
This patch uses the prefix increment operator instead of postfix. Also, I removed the increment operation as a separate line, and simply moved it in-line with the assignment of the room name.
Attachment #8397780 - Flags: review?(clokep)
Attachment #8397780 - Flags: review?(clokep) → review+
Attachment #8360829 - Attachment is obsolete: true
https://hg.mozilla.org/comm-central/rev/d69fef57ca19
Status: ASSIGNED → RESOLVED
Closed: 10 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: