Project:Chat Room
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (won't fix)
Issue tags:Devel, theme developer

Issue Summary

I use the chatroom module 6.x-1.0-beta2. When I login as the super user with the ID 1. When I post a message in the chatroom the message will duplicate themselves automatically and persistently. So I will see many duplicated messages only by one hit. However, If I login as ordinary authenticated users, everything seems working fine.

AttachmentSize
2009-03-18-115915_819x406_scrot.png29.26 KB

Comments

#1

I was getting this behavior. For me, it turned out that the module was using this code:

line 104 of chatroom.js:

    if ($(this).html().length > 0) {

If the 'Theme Developer' module is enabled, it will inject HTML into the element causing the above code to evaluate to true and the message to be printed repeatedly. Other modules could cause this as well, but this one is particularly suited because it injects HTML just about everywhere. Also be aware that clicking 'Enable Developer Modules' in Admin Menu may enable 'Theme Developer'.

Instead of checking if the response message container is empty, it could be checked for a property like class 'new' and then the property could be reset.

#2

Status:active» closed (won't fix)

for now, this is a wont-fix, as it is caused by theme developer. i'm happy to have this reopened if someone wants to work on a patch to fix it.